]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04dbb92f8602e3373db8a3669ee37bbe58e85bdd
tree6a34ac0e185e2d790c20526084a2a7dcba57453a
parent4ef08a4854d1188f2a6e4fb8a76d8c6e845d6371
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