]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
qeth: restore device features after recovery
authorHans Wippel <hwippel@linux.vnet.ibm.com>
Thu, 15 Sep 2016 12:39:21 +0000 (14:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 08:29:13 +0000 (04:29 -0400)
commite830baa9c3f0023769ba9aab19eb44c892769d87
treedd2f59bcd3adff3f86c1fb4962b4e71a1167e9cc
parentbc6c03fa3cacd31b873e36ca16ef9678269deae6
qeth: restore device features after recovery

After device recovery, only a basic set of network device features is
enabled on the device. If features like checksum offloading or TSO were
enabled by the user before the recovery, this results in a mismatch
between the network device features, that the kernel assumes to be
enabled on the device, and the features actually enabled on the device.

This patch tries to restore previously set features, that require
changes on the device, after the recovery of a device. In case of an
error, the network device's features are changed to contain only the
features that are actually turned on.

Signed-off-by: Hans Wippel <hwippel@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c