aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/lapbether.c
diff options
context:
space:
mode:
authorEdwin Peer <[email protected]>2020-08-26 05:08:38 +0000
committerDavid S. Miller <[email protected]>2020-08-26 14:19:03 +0000
commit5fa65524f6e0b9528c6ceac3f33f7e8f0c3a084a (patch)
tree2a29e3008d4d07f555704697980a78437fe442fe /drivers/net/wan/lapbether.c
parentbnxt_en: fix HWRM error when querying VF temperature (diff)
downloadkernel-5fa65524f6e0b9528c6ceac3f33f7e8f0c3a084a.tar.gz
kernel-5fa65524f6e0b9528c6ceac3f33f7e8f0c3a084a.zip
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 <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions