Re: [PATCH net-next v2 20/33] vhost_net: also populate XDP frame size

2020-05-06 Thread Michael S. Tsirkin
On Thu, Apr 30, 2020 at 01:22:03PM +0200, Jesper Dangaard Brouer wrote: > 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). Als

Re: [PATCH net-next v2 20/33] vhost_net: also populate XDP frame size

2020-05-05 Thread Jason Wang
On 2020/5/6 下午2:41, Jason Wang wrote: On 2020/4/30 下午7:22, Jesper Dangaard Brouer wrote: 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_sh

Re: [PATCH net-next v2 20/33] vhost_net: also populate XDP frame size

2020-05-05 Thread Jason Wang
On 2020/4/30 下午7:22, Jesper Dangaard Brouer wrote: 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

[PATCH net-next v2 20/33] vhost_net: also populate XDP frame size

2020-04-30 Thread Jesper Dangaard Brouer
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