Re: [PATCH] usbnet: fix alignment for frames with no ethernet header

From: David Miller <davem@davemloft.net>
Date: 2017-12-06 20:56:11
Also in: linux-usb

From: Bjørn Mork <bjorn@mork.no>
Date: Wed,  6 Dec 2017 20:21:24 +0100
The qmi_wwan minidriver support a 'raw-ip' mode where frames are
received without any ethernet header. This causes alignment issues
because the skbs allocated by usbnet are "IP aligned".

Fix by allowing minidrivers to disable the additional alignment
offset. This is implemented using a per-device flag, since the same
minidriver also supports 'ethernet' mode.

Fixes: 32f7adf633b9 ("net: qmi_wwan: support "raw IP" mode")
Reported-and-tested-by: Jay Foster <redacted>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Looks good, applied and queued up for -stable.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help