diff options
author | Maciej Fijalkowski <maciej.fijalkowski@intel.com> | 2024-01-24 22:15:59 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-01-25 03:24:07 +0300 |
commit | 3de38c87174225487fc93befeea7d380db80aef6 (patch) | |
tree | cb98a6eac4860b6fea2fee81820f8be67e963a92 /net | |
parent | 290779905d09d5fdf6caa4f58ddefc3f4db0c0a9 (diff) | |
download | linux-3de38c87174225487fc93befeea7d380db80aef6.tar.xz |
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 <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/r/20240124191602.566724-9-maciej.fijalkowski@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions