]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit3f93522ffab2d46a36b57adf324a54e674fc9536
tree7958a5ebe775d814f55746bd25e300a7cc7c9849
parent4941d472bf95b4345d6e38906fcf354e74afa311
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