net: usb: cdc_eem: fix mtu
authorRabin Vincent <rabin@rab.in>
Thu, 29 Mar 2012 07:15:15 +0000 (07:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Apr 2012 03:32:35 +0000 (23:32 -0400)
commit78fb72f7936c01d5b426c03a691eca082b03f2b9
treee35842c46e105ef286c4e148977494fd81946eee
parent10b9194f959608368ed89df1937f17cfe6bd6d84
net: usb: cdc_eem: fix mtu

Make CDC EEM recalculate the hard_mtu after adjusting the
hard_header_len.

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

Tested with the Linux USB Ethernet gadget.

Cc: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_eem.c