be2net: check for INSUFFICIENT_VLANS error
authorKalesh AP <kalesh.purayil@emulex.com>
Wed, 6 May 2015 09:30:35 +0000 (05:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:27:03 +0000 (16:27 -0400)
commit77be8c1c4ceabdb61781e96f8610fdc53c03c072
tree7aa05779f1e92dd1f15f3028289137ac01317910
parent0ed7d7498d61bab40943ccb95d6004b247eead0e
be2net: check for INSUFFICIENT_VLANS error

When the FW runs out of vlan filters it can either return an
INSUFFICIENT_RESOURCES error or an INSUFFICIENT_VLANS error.
The driver currently checks only for the former error value.
This patch adds a check for the latter value too.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c