diff options
author | Edwin Peer <edwin.peer@broadcom.com> | 2020-07-08 07:54:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-08 15:21:14 -0700 |
commit | 1da63ddd0e155277bf613dfc7062af95d90452f2 (patch) | |
tree | 71bd08fe93693771ab7c54ca5f1273ddb58943f5 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | a196e96bb68fbc7a319f45df1d529b807216a03a (diff) | |
download | lwn-1da63ddd0e155277bf613dfc7062af95d90452f2.tar.gz lwn-1da63ddd0e155277bf613dfc7062af95d90452f2.zip |
bnxt_en: allow firmware to disable VLAN offloads
Bare-metal use cases require giving firmware and the embedded
application processor control over VLAN offloads. The driver should
not attempt to override or utilize this feature in such scenarios
since it will not work as expected.
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 13c40645f884..d556e5660a02 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1716,6 +1716,9 @@ struct bnxt { #define BNXT_FW_CAP_ERR_RECOVER_RELOAD 0x00100000 #define BNXT_FW_CAP_HOT_RESET 0x00200000 #define BNXT_FW_CAP_SHARED_PORT_CFG 0x00400000 + #define BNXT_FW_CAP_VLAN_RX_STRIP 0x01000000 + #define BNXT_FW_CAP_VLAN_TX_INSERT 0x02000000 + #define BNXT_FW_CAP_EXT_HW_STATS_SUPPORTED 0x04000000 #define BNXT_NEW_RM(bp) ((bp)->fw_cap & BNXT_FW_CAP_NEW_RM) u32 hwrm_spec_code; |