]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ibmvnic: Fix initial MTU settings
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Tue, 14 Feb 2017 16:22:59 +0000 (10:22 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 19:57:45 +0000 (14:57 -0500)
commitf39f0d1e1e93145a0e91d9a7a639c42fd037ecc3
treec6f51606b311e9ee00235e9fc06301ff8fe23ba1
parenta60ced990e309666915d21445e95347d12406694
ibmvnic: Fix initial MTU settings

In the current driver, the MTU is set to the maximum value
capable for the backing device. This decision turned out to
be a mistake as it led to confusion among users. The expected
initial MTU value used for other IBM vNIC capable operating
systems is 1500, with the maximum value (9000) reserved for
when Jumbo frames are enabled. This patch sets the MTU to
the default value for a net device.

It also corrects a discrepancy between MTU values received from
firmware, which includes the ethernet header length, and net
device MTU values.

Finally, it removes redundant min/max MTU assignments after device
initialization.

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