diff options
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index bf3c830e7dda..062600be073b 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -7528,7 +7528,7 @@ bnx2_set_flags(struct net_device *dev, u32 data) | |||
7528 | 7528 | ||
7529 | if (!(bp->flags & BNX2_FLAG_CAN_KEEP_VLAN) && | 7529 | if (!(bp->flags & BNX2_FLAG_CAN_KEEP_VLAN) && |
7530 | !(data & ETH_FLAG_RXVLAN)) | 7530 | !(data & ETH_FLAG_RXVLAN)) |
7531 | return -EOPNOTSUPP; | 7531 | return -EINVAL; |
7532 | 7532 | ||
7533 | rc = ethtool_op_set_flags(dev, data, ETH_FLAG_RXHASH | ETH_FLAG_RXVLAN | | 7533 | rc = ethtool_op_set_flags(dev, data, ETH_FLAG_RXHASH | ETH_FLAG_RXVLAN | |
7534 | ETH_FLAG_TXVLAN); | 7534 | ETH_FLAG_TXVLAN); |