bnxt_en: Simplify VLAN receive logic.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Jun 2016 06:37:16 +0000 (02:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2016 23:02:03 +0000 (16:02 -0700)
commit8852ddb4dcdfe6f877a02f79bf2bca9ae63c039a
treeaa268a311f05adf73488b005fb08a3db73d8e1cb
parent5a9f6b238e59bc05afb4cdeaf3672990bf2a5309
bnxt_en: Simplify VLAN receive logic.

Since both CTAG and STAG rx acceleration must be enabled together, we
only need to check one feature flag (NETIF_F_HW_VLAN_CTAG_RX) before
calling __vlan_hwaccel_put_tag().

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