diff options
| author | Maciej Fijalkowski <[email protected]> | 2024-01-24 19:15:59 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-01-25 00:24:07 +0000 |
| commit | 3de38c87174225487fc93befeea7d380db80aef6 (patch) | |
| tree | cb98a6eac4860b6fea2fee81820f8be67e963a92 /drivers/net/ethernet/intel/i40e/i40e_main.c | |
| parent | intel: xsk: initialize skb_frag_t::bv_offset in ZC drivers (diff) | |
| download | kernel-3de38c87174225487fc93befeea7d380db80aef6.tar.gz kernel-3de38c87174225487fc93befeea7d380db80aef6.zip | |
ice: update xdp_rxq_info::frag_size for ZC enabled Rx queue
Now that ice driver correctly sets up frag_size in xdp_rxq_info, let us
make it work for ZC multi-buffer as well. ice_rx_ring::rx_buf_len for ZC
is being set via xsk_pool_get_rx_frame_size() and this needs to be
propagated up to xdp_rxq_info.
Use a bigger hammer and instead of unregistering only xdp_rxq_info's
memory model, unregister it altogether and register it again and have
xdp_rxq_info with correct frag_size value.
Fixes: 1bbc04de607b ("ice: xsk: add RX multi-buffer support")
Signed-off-by: Maciej Fijalkowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_main.c')
0 files changed, 0 insertions, 0 deletions
