bnxt_en: Enable and disable RX CTAG and RX STAG VLAN acceleration together.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Jun 2016 06:37:15 +0000 (02:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2016 23:02:03 +0000 (16:02 -0700)
commit5a9f6b238e59bc05afb4cdeaf3672990bf2a5309
tree71a3c237ca18036c205a9ab7c4bcd1c3355beb9c
parentb9a8460a08a1e0150073cda3e7a0dd23cb888052
bnxt_en: Enable and disable RX CTAG and RX STAG VLAN acceleration together.

The hardware can only be set to strip or not strip both the VLAN CTAG and
STAG.  It cannot strip one and not strip the other.  Add logic to
bnxt_fix_features() to toggle both feature flags when the user is toggling
one of them.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c