Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp355024imm; Wed, 29 Aug 2018 01:33:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYTlx/LdS/LmnsJ8J+4vwcHM6mL8FlVJWmlUz7/BbLZCpX7ElgzDQ5PyncEJ8QvAPy1R0sS X-Received: by 2002:a63:a40a:: with SMTP id c10-v6mr4754340pgf.346.1535531638301; Wed, 29 Aug 2018 01:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535531638; cv=none; d=google.com; s=arc-20160816; b=sU+vzNLQt/xPmGfA9xO57a76E0HEP9VfDWcSGEdm1hHCuFgD4yYhrheVpZUXAlXHJ9 JUzU0GGTGQ8Nb/sAmUpXx2SDP9DoF70lZHVkHOoqbi9CkKSuLl0JFYawX2A1durtrcpe sP6bM4pBkGPRtKJJX/KSRWE1Z+KN+hyz4PNYYuIwvtmFTLmJa1CUqDKnjMi2E9o3ondb i1b9R1BZn5lQPvToj1S3p5xt6l8qbram5EjrckOmESymbGXqk8ht4eLAtajmwgMRCrUN OAeANx/g18sH1S0qo73QXpT9rsVLjq1qlCT8fgzvSTdRblVibq1zO72RnjTRzJxLeOtV jsTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=1GpQ1vdMRz74HnBfPeLYxMzVUTwPtfd+1sLQlXdhO1o=; b=EhbycsOoy8ThyPJCUae57Oaga3umZX7EMPaajuY302HySv0FC1hgK54yPsyCQyMnBr DSxawYf5MnbTvqim/PkCXYam8aAQ0TQaCvkp1NYLCZAnxdz6/bn66EY4AKxj5YBv9p2T AYwt/IhBs2nITa3xgF3WTsrPXtAUwQFV2ThVeY+q0p1qVeWZYS7YPyuL6re2oYq1TSkt r1osaY3YhvkGXEOCEY0pxs3ubTZ2FpLufDjjoo1Ep/wXE/Aa2ske8C2iTwNrEr7EBdfY aiq1mXflPXr/2bbF2QKeuaqyGl9ClKJqDAHczxNnUhZPPEH9XZDwbby9E1ioWTPngvL5 M79Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=MtYHMV63; 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 u207-v6si3127932pgb.640.2018.08.29.01.33.43; Wed, 29 Aug 2018 01:33:58 -0700 (PDT) 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=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=MtYHMV63; 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 S1728228AbeH2M1c (ORCPT + 99 others); Wed, 29 Aug 2018 08:27:32 -0400 Received: from mail-by2nam03on0076.outbound.protection.outlook.com ([104.47.42.76]:27631 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727399AbeH2M1c (ORCPT ); Wed, 29 Aug 2018 08:27:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1GpQ1vdMRz74HnBfPeLYxMzVUTwPtfd+1sLQlXdhO1o=; b=MtYHMV63QDVDDeAyfbTzrmM+H9IwndPYUeMZoFTxh75UZq8wdvjsZm4tlmkYXJXkRF2U5RFgUWSnzfY2ZdphwjC8tDc1SgV1Jx8l0sh++vvkUYg/NkpS48rcUShq46jXAwt6D4Ll2JAHHGMeRVrxA+G5Z0m/gnQo/SSSGMjKoyI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by BLUPR0301MB1569.namprd03.prod.outlook.com (2a01:111:e400:52a9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.15; Wed, 29 Aug 2018 08:31:41 +0000 Date: Wed, 29 Aug 2018 16:28:36 +0800 From: Jisheng Zhang To: , "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Gregory CLEMENT , linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] net: mvneta: Don't check NETIF_F_GRO ourself Message-ID: <20180829162836.2551ba46@xhacker.debian> In-Reply-To: <20180829162456.2bd69796@xhacker.debian> References: <20180829162456.2bd69796@xhacker.debian> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR01CA0082.jpnprd01.prod.outlook.com (2603:1096:404:2c::22) To BLUPR0301MB1569.namprd03.prod.outlook.com (2a01:111:e400:52a9::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 805f038f-1079-48c8-296d-08d60d89d9d1 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BLUPR0301MB1569; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1569;3:Ph22fHJZlCf4w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LFi1t7Bw4KeLd2c/BP3vx2HEiqyk4T4gIItdcUbFT3CqLc7oTndKBR88mOGEFiabvwP12PX+s+wA9f7xVjM2MfWHYNQ14NBXGg0sl+mFxLJfCRnOdjUN8UEwQuxqtZSjEtKGPa3XyZkLGPx5x9e3odEX0Iewz8q01BWVjcJKkHUQ3rRVY7iPL/UEoHHCjfwF7zMcJcPlfa5mDl8ACJTTIsRFxXhk4hooTVgQHhDaklLr8a3otScob8mXy75BInUJiwL+eGEvSPRFQZJ9rmIcQagN8NCn+7rRDvdJqIUX2VkVJawNRW4lVFqGnfPJYIzvS3hF0TGUp/NiRSTQHRYpO02mtlj3rguxMEv;4:TIe49X96dD5q4z007QFFh8pjRCRTyvzI/qlb2thJGW1tayv2moKqOhdWlkRB/ago/6/IpkJVOkdRQUtlE/gTiRfpFG422K1trv2uxVJs7+3TTFzXtmtjTyRu6fJeAQeN/tANimybCSAKxlb+KHqUozcjng0J9/9tLnT91ss3VE5XQHJiA74End6jNWMJoSYvSIMlFdcM5gtPnscGoAlMpfDbPE8p+WDjrUUF5rX6lu/u8laaOnReE92HPmHryB8sB2phoChzRMbhKTKk+Sa1iQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699016);SRVR:BLUPR0301MB1569;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0301MB1569; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(136003)(376002)(366004)(396003)(39860400002)(346002)(199004)(189003)(478600001)(23726003)(2906002)(72206003)(1076002)(106356001)(33896004)(105586002)(230700001)(7736002)(6666003)(3846002)(6116002)(54906003)(476003)(66066001)(110136005)(956004)(55016002)(316002)(486006)(305945005)(97736004)(47776003)(53936002)(76176011)(7696005)(52116002)(50466002)(81166006)(81156014)(446003)(11346002)(5660300001)(9686003)(8676002)(16526019)(4326008)(86362001)(6506007)(386003)(8936002)(186003)(25786009)(68736007)(50226002)(26005)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0301MB1569;H:xhacker.debian;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0301MB1569;23:1czOTk2tnERmDLtxTTybRBjI7TUkg6Ue0Qu4Bop?= =?us-ascii?Q?poA1WmwM0XThXZawUGaoO2ocAe0X4sxT0nq8jYmPoViIH0U9u/wtQiS+sbTl?= =?us-ascii?Q?H5x5YABGWQhH6J2c7/BwBU5/swEa8Mowj1smHfNT+TLk1AbkfmzDeK7gYUtF?= =?us-ascii?Q?qZUZUdJVMvCpTN1XeR+gmahJZ58kuswowBA+FKfbizkt95QJAK18VcVZMZ9X?= =?us-ascii?Q?YOPFRLbRAIxG3DSZA4rEWFNJFg7lOybDCeC5N8O3yu9qBoduqCKHfNn+DoWL?= =?us-ascii?Q?9G2YP3IfjTcBObV+sJ6NpDp3RiQ+9UclltEDwNobRvl4AI3KpJy8UQnNBY2C?= =?us-ascii?Q?lcZ5o7A6TaC2vwyAB8VUnuk7uqpLCXuBQzL3l+IHF20V1dLAIKqmUR4kS5tj?= =?us-ascii?Q?Uh15UIH6+5RFZvABS/YRECqj9xrBDSLjHp5dSa6R90IfGBUX72voOA6gbaka?= =?us-ascii?Q?8lAZzTEDvLoQF02wsd3epU6xgN3bnm1JugW3pgEoj/5u4GAhMLJ9bDGK6hHA?= =?us-ascii?Q?9LiRo0b/OcvSLZBUIjoODOdWhrQGxE711Oe07OwWqFtCja8p15AYoXHb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iqo9OW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 08:31:41.0565 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 805f038f-1079-48c8-296d-08d60d89d9d1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB1569 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org napi_gro_receive() checks NETIF_F_GRO bit as well, if the bit is not set, we will go through GRO_NORMAL in napi_skb_finish(), so fall back to netif_receive_skb_internal(), so we don't need to check NETIF_F_GRO ourself. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index d9206094fce3..06634d4f9b94 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -2065,10 +2065,7 @@ static int mvneta_rx_swbm(struct napi_struct *napi, /* Linux processing */ rxq->skb->protocol = eth_type_trans(rxq->skb, dev); - if (dev->features & NETIF_F_GRO) - napi_gro_receive(napi, rxq->skb); - else - netif_receive_skb(rxq->skb); + napi_gro_receive(napi, rxq->skb); /* clean uncomplete skb pointer in queue */ rxq->skb = NULL; -- 2.18.0