From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Subject: Re: [PATCH net] qmi_wwan: Add missing skb_reset_mac_header-call Date: Tue, 07 Nov 2017 14:02:53 +0100 Message-ID: <87mv3ynsw2.fsf@miraculix.mork.no> References: <20171107124756.3029-1-kristian.evensen@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kristian Evensen Return-path: In-Reply-To: <20171107124756.3029-1-kristian.evensen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> (Kristian Evensen's message of "Tue, 7 Nov 2017 13:47:56 +0100") Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org Kristian Evensen writes: > When we receive a packet on a QMI device in raw IP mode, we should call > skb_reset_mac_header() to ensure that skb->mac_header contains a valid > offset in the packet. While it shouldn't really matter, the packets have > no MAC header and the interface is configured as-such, it seems certain > parts of the network stack expects a "good" value in skb->mac_header. Thanks. Yes, I see that the tun driver also does this. Acked-by: Bj=C3=B8rn Mork And his should probably go to stable as well? with a Fixes: 32f7adf633b9 ("net: qmi_wwan: support "raw IP" mode") -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html