OSDN Git Service

ibmvnic: Update reset infrastructure to support tunable parameters
authorJohn Allen <jallen@linux.vnet.ibm.com>
Thu, 26 Oct 2017 21:23:25 +0000 (16:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 15:23:58 +0000 (00:23 +0900)
commitc26eba03e4073bd32ef6c0ea2ba2a3ff5eed11da
treedbc073f935499df2f3fa87961b30d3d08c2f83e8
parentc9d0dc4b119ee9cab57977924f8d9aeb2bd48eb9
ibmvnic: Update reset infrastructure to support tunable parameters

Update ibmvnic reset infrastructure to include a new reset option that will
allow changing of tunable parameters. There currently is no way to request
different capabilities from the vnic server on the fly so this patch
achieves this by resetting the driver and attempting to log in with the
requested changes. If the reset operation fails, the old values of the
tunable parameters are stored in the "fallback" struct and we attempt to
login with the fallback values.

Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h