virtio-net: re enable XDP_REDIRECT for mergeable buffer
authorJason Wang <jasowang@redhat.com>
Fri, 2 Mar 2018 09:29:14 +0000 (17:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 23:37:54 +0000 (18:37 -0500)
commit51568d69407d939e898a150b13cf48d226f53303
tree47da897229c1fd9094fb43e7b7d512b816d45d2e
parent053533fc7577ddbe14b2a7c4a8fc70ce3fbb3547
virtio-net: re enable XDP_REDIRECT for mergeable buffer

XDP_REDIRECT support for mergeable buffer was removed since commit
7324f5399b06 ("virtio_net: disable XDP_REDIRECT in receive_mergeable()
case"). This is because we don't reserve enough tailroom for struct
skb_shared_info which breaks XDP assumption. So this patch fixes this
by reserving enough tailroom and using fixed size of rx buffer.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c