]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: make rx buf size estimation works for XDP
authorJason Wang <jasowang@redhat.com>
Fri, 23 Dec 2016 14:37:29 +0000 (22:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2016 18:48:55 +0000 (13:48 -0500)
commitb3309ad3960f8725e45d342604c3f7173a01a2a3
treec51daeff71e8a8f1851fd255dc8bb856ee6ac1fd
parent1db50cd0681096e535cddab8d5ae65022cc38fe8
virtio-net: make rx buf size estimation works for XDP

We don't update ewma rx buf size in the case of XDP. This will lead
underestimation of rx buf size which causes host to produce more than
one buffers. This will greatly increase the possibility of XDP page
linearization.

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