Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2722840imj; Mon, 11 Feb 2019 07:31:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IZnBqiXy1lCdRyfzUlk9Cg4YSh/TR+4h1TI8fdTVy+Q23oBpW39sY2Utx7P3jtWHwtCvTLy X-Received: by 2002:a17:902:622:: with SMTP id 31mr37321137plg.171.1549899087764; Mon, 11 Feb 2019 07:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549899087; cv=none; d=google.com; s=arc-20160816; b=06Px+EnesXjAuiO8txJdZxlhxadAuuLs88rbXGMpEJpX/iSQF5/Af03sd3+YAlcfRh fgZcRmnrsXiKzVCSB5HTL8L/y9tbSujch/ueLn9P2jH26g2DgKKWD1VYFX99frhDsoHH DLvPh67Lds47yAr1VOipYKbiEDk1NP8Aa97CXHmNZuAtXblcK3NkHoVMfS+lwk+oTT2P iaPOTB9/pyxqLq13u0CLNcfOjBW64r5yrtQMD60CN9Lp6T0QZcOsrL5oy4u4sRILPERh 4tTtzABE41l+MFd5JQAuXotiHHMnFmNXQv29Pj845mmOYsPcekIgpryZTTAz15AaSXRS wNsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mcVg55dJTZCx1X7aCc9/wHww7AmSsISRqEcFFLDFJHs=; b=Rz5xNwlqVUn2EtibV5e7g8O9qPWKB9nam34jm4SEpy2qqm90Bn5wFGdT6xHN70ksGE jLd8el00stM6QMZBzbj6r3231dmpjIRfeZ/ER+BLcvgGdNK0v6UAM5lcrTeti0VNf7c8 OZUYMTxjGfbPPM9j5QXNFF5FIqZepWV1LJDb4auVTfYZhX6++R3kcLW4WHmTVLjsqC5N 2SL6rGuzS4FQ2jcww/tWvPXAGLtRvXsLkopJ7hDz+iDaPgA02LJ2wFNhcRwJs4rJ5z/S KyVc13mz60WoV8FPBFvRJRPSvD7FWDGv8ZaaSnt9xZqBWghAhX1YgttVJ/z0Z3YCH2JM Ry/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QoHxzvl9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si10608199pfj.278.2019.02.11.07.31.10; Mon, 11 Feb 2019 07:31:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QoHxzvl9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389205AbfBKO4j (ORCPT + 99 others); Mon, 11 Feb 2019 09:56:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:43812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388780AbfBKO4g (ORCPT ); Mon, 11 Feb 2019 09:56:36 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5358F222A1; Mon, 11 Feb 2019 14:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549896995; bh=NbvDV21sUjvgGSqyz98zIZ/vew5igTVlPA0iJzPK/KI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QoHxzvl9etgGTZ/gaAEc896b0eY6Bp9fcSw0Bmz13/uxOGwm/c8vz5esKuOrGuyhS blEIa8/zX7gwVj9j5hLPdC7vvOUC4V+tTGMer13MOsfQKEMok6jmUayxd5iLjokXVJ yh8WAnNLBoFWqvAwnPRSBlYO/2C54mOdIXTyoe0I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Dooks , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 026/205] usbnet: smsc95xx: fix rx packet alignment Date: Mon, 11 Feb 2019 15:17:04 +0100 Message-Id: <20190211141829.419580083@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 810eeb1f41a9a272eedc94ca18c072e75678ede4 ] The smsc95xx driver already takes into account the NET_IP_ALIGN parameter when setting up the receive packet data, which means we do not need to worry about aligning the packets in the usbnet driver. Adding the EVENT_NO_IP_ALIGN means that the IPv4 header is now passed to the ip_rcv() routine with the start on an aligned address. Tested on Raspberry Pi B3. Signed-off-by: Ben Dooks Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/smsc95xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 2f65975a121f..fc48da1c702d 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -1295,6 +1295,7 @@ static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf) dev->net->features |= NETIF_F_RXCSUM; dev->net->hw_features = NETIF_F_IP_CSUM | NETIF_F_RXCSUM; + set_bit(EVENT_NO_IP_ALIGN, &dev->flags); smsc95xx_init_mac_address(dev); -- 2.19.1