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)
commitdde746a35f8b7da4b9515dd3dc4708a9926fbd65
tree2da6515c2a951a950bcdc8c9d8adceada0f7aa7d
parentb66b7bd2bdc1a74c46a0a470f9ac19629320d212
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