Home
last modified time | relevance | path

Searched hist:ef75cb51f13941cf7633227ade43c4d86ecbc336 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/
H A Dvirtio_net.cdiff ef75cb51f13941cf7633227ade43c4d86ecbc336 Sat Jan 14 02:22:24 CST 2023 Heng Qi <hengqi@linux.alibaba.com> virtio-net: build xdp_buff with multi buffers

Support xdp for multi buffer packets in mergeable mode.

Putting the first buffer as the linear part for xdp_buff,
and the rest of the buffers as non-linear fragments to struct
skb_shared_info in the tailroom belonging to xdp_buff.

Let 'truesize' return to its literal meaning, that is, when
xdp is set, it includes the length of headroom and tailroom.

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>