]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: switch off offloads on demand if possible on XDP set
authorJason Wang <jasowang@redhat.com>
Wed, 19 Jul 2017 08:54:49 +0000 (16:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2017 20:37:00 +0000 (13:37 -0700)
commit7b7dd21f49691f9cd4ccc5ae4f07ce5492129957
tree7958a5ebe775d814f55746bd25e300a7cc7c9849
parent993941dee7ac1dc06258fd245e5d105d18ac1dab
virtio-net: switch off offloads on demand if possible on XDP set

Current XDP implementation wants guest offloads feature to be disabled
on device. This is inconvenient and means guest can't benefit from
offloads if XDP is not used. This patch tries to address this
limitation by disabling the offloads on demand through control guest
offloads. Guest offloads will be disabled and enabled on demand on XDP
set.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c