summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorEdwin Peer <edwin.peer@broadcom.com>2020-08-26 08:08:38 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-26 17:19:03 +0300
commit5fa65524f6e0b9528c6ceac3f33f7e8f0c3a084a (patch)
tree2a29e3008d4d07f555704697980a78437fe442fe /tools/perf/scripts/python/export-to-postgresql.py
parent12cce90b934bf2b0ed9c339b4d5503e69954351a (diff)
downloadlinux-5fa65524f6e0b9528c6ceac3f33f7e8f0c3a084a.tar.xz
bnxt_en: init RSS table for Minimal-Static VF reservation
There are no VF rings available during probe when the device is configured using the Minimal-Static reservation strategy. In this case, the RSS indirection table can only be initialized later, during bnxt_open_nic(). However, this was not happening because the rings will already have been reserved via bnxt_init_dflt_ring_mode(), causing bnxt_need_reserve_rings() to return false in bnxt_reserve_rings() and bypass the RSS table init. Solve this by pushing the call to bnxt_set_dflt_rss_indir_tbl() into __bnxt_reserve_rings(), which is common to both paths and is called whenever ring configuration is changed. After doing this, the RSS table init that must be called from bnxt_init_one() happens implicitly via bnxt_set_default_rings(), necessitating doing the allocation earlier in order to avoid a null pointer dereference. Fixes: bd3191b5d87d ("bnxt_en: Implement ethtool -X to set indirection table.") 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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions