summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHeng Qi <hengqi@linux.alibaba.com>2023-01-14 16:22:25 +0800
committerDavid S. Miller <davem@davemloft.net>2023-01-16 11:15:48 +0000
commit22174f79a44baf5e46faafff1d7b21363431b93a (patch)
treeade39be98ad7608ada7f2932260caaee6bea8960 /net/unix/af_unix.c
parentef75cb51f13941cf7633227ade43c4d86ecbc336 (diff)
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 <hengqi@linux.alibaba.com> Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions