hv_netvsc: Sync offloading features to VF NIC
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 5 Sep 2019 23:23:12 +0000 (23:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Sep 2019 15:42:52 +0000 (17:42 +0200)
commit68622d071e555e1528f3e7807f30f73311c1acae
tree6a34ac0e185e2d790c20526084a2a7dcba57453a
parentb441f79532ec13dc82d05c55badc4da1f62a6141
hv_netvsc: Sync offloading features to VF NIC

VF NIC may go down then come up during host servicing events. This
causes the VF NIC offloading feature settings to roll back to the
defaults. This patch can synchronize features from synthetic NIC to
the VF NIC during ndo_set_features (ethtool -K),
and netvsc_register_vf when VF comes back after host events.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Mark Bloch <markb@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c