]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Fix netdev feature clobbering during a reset
authorThomas Falcon <tlfalcon@linux.ibm.com>
Wed, 10 Apr 2019 16:07:00 +0000 (11:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Apr 2019 19:29:37 +0000 (12:29 -0700)
commit05c2f14837f40f7c16430baf02e85c7993135b38
tree2da6515c2a951a950bcdc8c9d8adceada0f7aa7d
parentc68ed659ab5f18b7d34fd0b03b1d24aa94fceb4e
ibmvnic: Fix netdev feature clobbering during a reset

While determining offload capabilities of backing hardware during
a device reset, the driver is clobbering current feature settings.
Update hw_features on reset instead of features unless a feature
is enabled that is no longer supported on the current backing device.
Also enable features that were not supported prior to the reset but
were previously enabled or requested by the user.

This can occur if the reset is the result of a carrier change, such
as a device failover or partition migration.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c