net: cdc_ncm: set correct dev->hard_mtu
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 10:16:52 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 06:02:03 +0000 (02:02 -0400)
commit43c87f78388443e3bf6c73c05574bfa15b994f0a
tree49bfc39c2ec45139d95e60288accab56dcda98e2
parent0e2c4a00547a406aeb3bb5a3007cc90a62104980
net: cdc_ncm: set correct dev->hard_mtu

usbnet use the hard_mtu value for sizing the tx queue and nothing
else.  We will be transmitting buffers of up to tx_max size, so
that's the proper value to give usbnet.

The individual datagram size is completely irrelevant here.

Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c