]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1dcd4c583ae93f90533abd040d5832d19086dfa3
tree755febbb9924b1501a552647a112fa4cef00d46c
parentd61b49c6476113eeebc6552f57c9d9d10553fad5
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