]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
i40e: update xdp_rxq_info::frag_size for ZC enabled Rx queue
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Wed, 24 Jan 2024 19:16:02 +0000 (20:16 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Jan 2024 00:24:07 +0000 (16:24 -0800)
commit0cbb08707c932b3f004bc1a8ec6200ef572c1f5f
treeef22ef695dcfca8d7ce9ac5222ebbd98a634560c
parenta045d2f2d03d23e7db6772dd83e0ba2705dfad93
i40e: update xdp_rxq_info::frag_size for ZC enabled Rx queue

Now that i40e driver correctly sets up frag_size in xdp_rxq_info, let us
make it work for ZC multi-buffer as well. i40e_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.

Fixes: 1c9ba9c14658 ("i40e: xsk: add RX multi-buffer support")
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/r/20240124191602.566724-12-maciej.fijalkowski@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_main.c