]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Revert to previous mtu when unsupported value requested
authorJohn Allen <jallen@linux.vnet.ibm.com>
Thu, 18 Jan 2018 22:27:12 +0000 (16:27 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 20:46:55 +0000 (15:46 -0500)
commitd8f9bbc920d8fc5d8f6868ad1b4aa8568cbc1178
treeaa1a76290c8adad933e46c3fc57fc542cc6989b8
parentf7b348a4cbdee9f1a4f2bbc663dab310f03b1679
ibmvnic: Revert to previous mtu when unsupported value requested

If we request an unsupported mtu value, the vnic server will suggest a
different value. Currently we take the suggested value without question
and login with that value. However, the behavior doesn't seem completely
sane as attempting to change the mtu to some specific value will change
the mtu to some completely different value most of the time. This patch
fixes the issue by logging in with the previously used mtu value and
printing an error message saying that the given mtu is unsupported.

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