mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
73b62bd085
commit
275be061b3
@ -572,7 +572,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,
|
||||
if (unlikely(hdr->hdr.gso_type || hdr->hdr.flags))
|
||||
goto err_xdp;
|
||||
|
||||
act = do_xdp_prog(vi, rq, xdp_prog, page, offset, len);
|
||||
act = do_xdp_prog(vi, rq, xdp_prog, xdp_page, offset, len);
|
||||
switch (act) {
|
||||
case XDP_PASS:
|
||||
if (unlikely(xdp_page != page))
|
||||
|
Loading…
x
Reference in New Issue
Block a user