]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: usb: cdc_eem: fix mtu
authorRabin Vincent <rabin@rab.in>
Thu, 29 Mar 2012 07:15:15 +0000 (07:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 15:14:05 +0000 (08:14 -0700)
commit4e8d37e8fccbe4a558062e4b6416dbc23dcdd8ad
tree3258ac192698443f2e492d980111d88db9bde652
parentcea90bebaab0e962cf9a954ef41cc1893da7b3bf
net: usb: cdc_eem: fix mtu

[ Upstream commit 78fb72f7936c01d5b426c03a691eca082b03f2b9 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/cdc_eem.c