summaryrefslogtreecommitdiff
path: root/mm/damon
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2024-01-17 15:45:13 -0800
committerJakub Kicinski <kuba@kernel.org>2024-01-19 21:15:13 -0800
commit523384a6aa095d3f3d9ee8b1a4e289d4311cd2d9 (patch)
tree5828be46ce66ad4a9ce9ef6d1f89fb8b1fb10005 /mm/damon
parent2ad8e57338ac7b1e149d458669a95132e2460096 (diff)
bnxt_en: Fix RSS table entries calculation for P5_PLUS chips
The existing formula used in the driver to calculate the number of RSS table entries is to round up the number of RX rings to the next integer multiples of 64 (e.g. 64, 128, 192, ..). This is incorrect. The valid values supported by the chip are 64, 128, 256, 512 only (power of 2 starting from 64). When the number of RX rings is greater than 128, the entry size will likely be wrong. Firmware will round down the invalid value (e.g. 192 rounded down to 128) provided by the driver, causing some RSS rings to not receive any packets. We already have an existing function bnxt_calc_nr_ring_pages() to do this calculation. Use it in bnxt_get_nr_rss_ctxs() to calculate the number of RSS contexts correctly for P5_PLUS chips. Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com> Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Fixes: 7b3af4f75b81 ("bnxt_en: Add RSS support for 57500 chips.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Link: https://lore.kernel.org/r/20240117234515.226944-4-michael.chan@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'mm/damon')
0 files changed, 0 insertions, 0 deletions