diff options
author | 2020-12-27 14:18:18 -0500 | |
---|---|---|
committer | 2020-12-28 14:10:53 -0800 | |
commit | a029a2fef5d11bb85587433c3783615442abac96 (patch) | |
tree | 877d4864ef27fdd0a9979bdbe95815c42bb48972 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bnxt_en: Fix AER recovery. (diff) | |
download | linux-dev-a029a2fef5d11bb85587433c3783615442abac96.tar.xz linux-dev-a029a2fef5d11bb85587433c3783615442abac96.zip |
bnxt_en: Check TQM rings for maximum supported value.
TQM rings are hardware resources that require host context memory
managed by the driver. The driver supports up to 9 TQM rings and
the number of rings to use is requested by firmware during run-time.
Cap this number to the maximum supported to prevent accessing beyond
the array. Future firmware may request more than 9 TQM rings. Define
macros to remove the magic number 9 from the C code.
Fixes: ac3158cb0108 ("bnxt_en: Allocate TQM ring context memory according to fw specification.")
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions