diff options
| author | Heng Qi <[email protected]> | 2023-01-14 08:22:25 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-01-16 11:15:48 +0000 |
| commit | 22174f79a44baf5e46faafff1d7b21363431b93a (patch) | |
| tree | ade39be98ad7608ada7f2932260caaee6bea8960 /net/unix/af_unix.c | |
| parent | virtio-net: build xdp_buff with multi buffers (diff) | |
| download | kernel-22174f79a44baf5e46faafff1d7b21363431b93a.tar.gz kernel-22174f79a44baf5e46faafff1d7b21363431b93a.zip | |
virtio-net: construct multi-buffer xdp in mergeable
Build multi-buffer xdp using virtnet_build_xdp_buff_mrg().
For the prefilled buffer before xdp is set, we will probably use
vq reset in the future. At the same time, virtio net currently
uses comp pages, and bpf_xdp_frags_increase_tail() needs to calculate
the tailroom of the last frag, which will involve the offset of the
corresponding page and cause a negative value, so we disable tail
increase by not setting xdp_rxq->frag_size.
Signed-off-by: Heng Qi <[email protected]>
Reviewed-by: Xuan Zhuo <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
