diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2020-06-12 13:47:31 +0200 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2020-06-18 22:37:25 -0700 |
commit | 3995ecbabc6f8019b3a55aeb551eeb9598b8b354 (patch) | |
tree | 31cd38e14cc5b4b5262079f6d93ef0fc79ad91eb /scripts | |
parent | b1d95cc2391ffac0c5b27256a4fb0d2cfb021a29 (diff) |
i40e: fix crash when Rx descriptor count is changed
When the AF_XDP buffer allocator was introduced, the Rx SW ring
"rx_bi" allocation was moved from i40e_setup_rx_descriptors()
function, and was instead done in the i40e_configure_rx_ring()
function.
This broke the ethtool set_ringparam() hook for changing the Rx
descriptor count, which was relying on i40e_setup_rx_descriptors() to
handle the allocation.
Fix this by adding an explicit i40e_alloc_rx_bi() call to
i40e_set_ringparam().
Fixes: be1222b585fd ("i40e: Separate kernel allocated rx_bi rings from AF_XDP rings")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions