]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00ab2b6eaeb42356fbad8acc410570825022dfb9
tree71a3c237ca18036c205a9ab7c4bcd1c3355beb9c
parent1771541339f86b1c09f2f5ce22b051fe0583fab6
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