diff options
author | Michael Chan <michael.chan@broadcom.com> | 2020-05-04 10:50:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-04 19:44:10 +0200 |
commit | ac3158cb01084aa654222f1ad970b6c1af3cef98 (patch) | |
tree | 4292a4a82edf7976a7daa4fda51211a8308bd8b9 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | bnxt_en: Update firmware spec. to 1.10.1.33. (diff) | |
download | linux-ac3158cb01084aa654222f1ad970b6c1af3cef98.tar.xz linux-ac3158cb01084aa654222f1ad970b6c1af3cef98.zip |
bnxt_en: Allocate TQM ring context memory according to fw specification.
Newer firmware spec. will specify the number of TQM rings to allocate
context memory for. Use the firmware specified value and fall back
to the old value derived from bp->max_q if it is not available.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-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 f2caa2756f5b..1dbc3aece7a6 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1357,6 +1357,7 @@ struct bnxt_ctx_mem_info { u16 mrav_num_entries_units; u8 tqm_entries_multiple; u8 ctx_kind_initializer; + u8 tqm_fp_rings_count; u32 flags; #define BNXT_CTX_FLAG_INITED 0x01 |