diff options
author | Michael Chan <michael.chan@broadcom.com> | 2020-06-23 19:01:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-23 20:13:58 -0700 |
commit | fed7edd18143c68c63ea049999a7e861123de6de (patch) | |
tree | 1dc86af0b05e5b92c5271f8a98ee9528ffd0e31e /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | d0ad2ea2bc185835f8a749302ad07b70528d2a09 (diff) | |
download | lwn-fed7edd18143c68c63ea049999a7e861123de6de.tar.gz lwn-fed7edd18143c68c63ea049999a7e861123de6de.zip |
bnxt_en: Do not enable legacy TX push on older firmware.
Older firmware may not support legacy TX push properly and may not
be disabling it. So we check certain firmware versions that may
have this problem and disable legacy TX push unconditionally.
Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.")
Reviewed-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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 858440e1dcdc..78e2fd63ac3d 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1749,6 +1749,7 @@ struct bnxt { u64 fw_ver_code; #define BNXT_FW_VER_CODE(maj, min, bld, rsv) \ ((u64)(maj) << 48 | (u64)(min) << 32 | (u64)(bld) << 16 | (rsv)) +#define BNXT_FW_MAJ(bp) ((bp)->fw_ver_code >> 48) __be16 vxlan_port; u8 vxlan_port_cnt; |