]> 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)
commit7b2427dd7505e25396391103b73b74677a1d978d
tree7958a5ebe775d814f55746bd25e300a7cc7c9849
parent48c25b1545369affb828d89a30fc8b829f731d38
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