OSDN Git Service

bnxt_en: clean up VLAN feature bit handling
authorEdwin Peer <edwin.peer@broadcom.com>
Wed, 8 Jul 2020 11:54:00 +0000 (07:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 22:21:14 +0000 (15:21 -0700)
commita196e96bb68fbc7a319f45df1d529b807216a03a
tree755febbb9924b1501a552647a112fa4cef00d46c
parentbd3191b5d87d5ebc1d4149bbbb42a64ec3d469bf
bnxt_en: clean up VLAN feature bit handling

The hardware VLAN offload feature on our NIC does not have separate
knobs for handling customer and service tags on RX. Either offloading
of both must be enabled or both must be disabled. Introduce definitions
for the combined feature set in order to clean up the code and make
this constraint more clear. Technically these features can be separately
enabled on TX, however, since the default is to turn both on, the
combined TX feature set is also introduced for code consistency.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
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
drivers/net/ethernet/broadcom/bnxt/bnxt.h