]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: smsc75xx: fix mtu
authorStephane Fillod <fillods@users.sf.net>
Sun, 15 Apr 2012 11:38:29 +0000 (11:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Apr 2012 03:54:22 +0000 (23:54 -0400)
commit7c61ac6548f7dc2a09333d479af193e3c3b4a2bd
treea40ea4c7b22d42aca799e460555349507970a693
parentfab1efc93fd1b1f1f2061daf242ef19ca2db3a09
net: usb: smsc75xx: fix mtu

Make smsc75xx recalculate the hard_mtu after adjusting the
hard_header_len.

Without this, usbnet adjusts the MTU down to 1492 bytes, and the host is
unable to receive standard 1500-byte frames from the device.

Inspired by same fix on cdc_eem 224f0e07c9be7abb6dd4db937a2db623b832ad0e.

Tested on ARM/Omap3 with EVB-LAN7500-LC.

Signed-off-by: Stephane Fillod <fillods@users.sf.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c