net: usb: smsc95xx: fix mtu
authorStephane Fillod <fillods@users.sf.net>
Fri, 20 Apr 2012 09:39:23 +0000 (09:39 +0000)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 14 May 2012 13:27:50 +0000 (18:27 +0530)
commit7db9f94089929b78e8995225676f6eef44d66db9
treeb4e5d9dd6797003b2f671f0993cd148c7a864144
parent00af48754debe7f0088c51df0cadde3dca87fd6b
net: usb: smsc95xx: fix mtu

Make smsc95xx recalculate the hard_mtu after adjusting the
hard_header_len.

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

Inspired by same fix on cdc_eem 78fb72f7936c01d5b426c03a691eca082b03f2b9.

Tested on ARM/Beagle.

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