virtio-net: correctly xmit linearized page on XDP_TX
authorJason Wang <jasowang@redhat.com>
Fri, 23 Dec 2016 14:37:25 +0000 (22:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2016 18:48:54 +0000 (13:48 -0500)
commit275be061b33b945cfb120ee8a570f78c3ccafe56
tree7f89c6cb0ab4b8898eda6aaea9ef1dbf02d5f2da
parent73b62bd085f4737679ea9afc7867fa5f99ba7d1b
virtio-net: correctly xmit linearized page on XDP_TX

After we linearize page, we should xmit this page instead of the page
of first buffer which may lead unexpected result. With this patch, we
can see correct packet during XDP_TX.

Cc: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c