usbnet: allow mini-drivers to consume L2 headers
authorBjørn Mork <bjorn@mork.no>
Thu, 3 Dec 2015 18:24:20 +0000 (19:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Dec 2015 21:56:23 +0000 (16:56 -0500)
commit81e0ce79f2919dbd5f025894d29aa806af8695c7
treef0c25084b409f3382b693aa53327bb10a46daa56
parent544c8f6507303e921979ac99f46f00a88b42b6e8
usbnet: allow mini-drivers to consume L2 headers

Assume the minidriver has taken care of all L2 header parsing
if it sets skb->protocol.  This allows the minidriver to
support non-ethernet L2 headers, and even operate without
any L2 header at all.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c