summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>2023-05-08 14:14:04 +0800
committerJakub Kicinski <kuba@kernel.org>2023-05-09 19:44:26 -0700
commitad4858beb824aeba53deeae660ea7fab9e624bc0 (patch)
tree25b6af79b453b033f5ed1f494fb0902319aef849 /lib/mpi/mpi-sub-ui.c
parent363d8ce4b94719a87dad865e2829f1dba0f7ef71 (diff)
virtio_net: introduce mergeable_xdp_get_buf()
Separating the logic of preparation for xdp from receive_mergeable. The purpose of this is to simplify the logic of execution of XDP. The main logic here is that when headroom is insufficient, we need to allocate a new page and calculate offset. It should be noted that if there is new page, the variable page will refer to the new page. Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions