summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2024-01-24 20:15:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-31 16:21:10 -0800
commit8bd491e5dcb55269856db759a14ba796cf0b05c9 (patch)
tree2d72a5bd94134cf139d23981cfe8a5a41e905215 /net/core
parent0528ad701722931eea26272527c723120744a252 (diff)
downloadlinux-stable-8bd491e5dcb55269856db759a14ba796cf0b05c9.tar.gz
linux-stable-8bd491e5dcb55269856db759a14ba796cf0b05c9.tar.bz2
linux-stable-8bd491e5dcb55269856db759a14ba796cf0b05c9.zip
ice: update xdp_rxq_info::frag_size for ZC enabled Rx queue
[ Upstream commit 3de38c87174225487fc93befeea7d380db80aef6 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions