]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: cdc_eem: Fix rx skb allocation for 802.1Q VLANs
authorIan Coolidge <iancoolidge@gmail.com>
Wed, 7 Nov 2012 14:39:19 +0000 (14:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2012 02:12:26 +0000 (21:12 -0500)
commit267de0786769ba3756b870ac9910c780bade46c4
tree236cf01306c151e26b6759414aef249961ff04a3
parentbe2220e8229ad9bd0ab2ca319b9f840c2bb8211d
net: usb: cdc_eem: Fix rx skb allocation for 802.1Q VLANs

cdc_eem frames might need to contain 802.1Q VLAN Ethernet frames.
URB/skb sizing from usbnet will default to the hard_mtu,
so account for the VLAN header by expanding that via hard_header_len

Signed-off-by: Ian Coolidge <iancoolidge@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_eem.c