]> git.baikalelectronics.ru Git - 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)
commitd83f8fe6ae483ef2b6c8e30ddc25af243e0c6151
treec6f51606b311e9ee00235e9fc06301ff8fe23ba1
parent12610cc129759b225071c34b3729147f83e6ca19
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