OpenCloudOS-Kernel/drivers/vhost
Jesper Dangaard Brouer 05afee298a vhost_net: Also populate XDP frame size
In vhost_net_build_xdp() the 'buf' that gets queued via an xdp_buff
have embedded a struct tun_xdp_hdr (located at xdp->data_hard_start)
which contains the buffer length 'buflen' (with tailroom for
skb_shared_info). Also storing this buflen in xdp->frame_sz, does not
obsolete struct tun_xdp_hdr, as it also contains a struct
virtio_net_hdr with other information.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/bpf/158945343928.97035.4620233649151726289.stgit@firesoul
2020-05-14 21:21:55 -07:00
..
Kconfig vhost: disable for OABI 2020-04-20 10:19:22 -04:00
Makefile vhost: introduce vDPA-based backend 2020-04-02 10:41:40 -04:00
iotlb.c vhost: factor out IOTLB 2020-04-01 12:06:26 -04:00
net.c vhost_net: Also populate XDP frame size 2020-05-14 21:21:55 -07:00
scsi.c vhost: Create accessors for virtqueues private_data 2020-04-16 18:31:07 -04:00
test.c virtio/test: fix up after IOTLB changes 2020-04-16 18:31:08 -04:00
test.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vdpa.c vhost: remove set but not used variable 'status' 2020-04-16 18:31:03 -04:00
vhost.c vhost: factor out IOTLB 2020-04-01 12:06:26 -04:00
vhost.h vhost: Create accessors for virtqueues private_data 2020-04-16 18:31:07 -04:00
vringh.c virtio/test: fix up after IOTLB changes 2020-04-16 18:31:08 -04:00
vsock.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-06 20:53:22 -07:00