Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp390447imm; Wed, 29 Aug 2018 02:38:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZZ97eFyNcTHlRzzdehZbD8hHKo7vrTA2AWAHeqAhvHc04Re4cr7OvwsENm3k26qBzhw1k6 X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr5191734pll.93.1535535519138; Wed, 29 Aug 2018 02:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535535519; cv=none; d=google.com; s=arc-20160816; b=NvWyAvs92KJt5cTywcZu5SITdSSB5ckjioaKnsaijbImTe2kzGwoHjGUCUeK7oTvoV zW5YnXTFy/sMzYyXn8AEtji57WI9OWsfowYW2tfOPpNx+iRzwf8CNpysZHFh9ccnkcYR ditBAk4c0ceUhwPvApGp8USZzrqyXknS9cxNX1nUQMT9qeacmDXGtdIdJkXZRIDSEOt7 JS97fcQap3CrmP/YignPqnCcPwvjsS6yUPcf7YjJ+PqNTtF44xNNPv8BwhnPbh46qOMh KgzAkHwoAtYaBTGw7R0HlXLbytPZcgIl+5pz+RSq+BzD+n0y+mOCyx5LTdLs6hloflDK Lxyw== 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:message-id:in-reply-to:date:references:subject:cc:to :from:arc-authentication-results; bh=G/+Sz1rbn78cvo71/uCN7ujZoHHkFuEKjMksWkzlZ9k=; b=BZyx63Bysz518BfVh6Tr/SiSNlhAZZEbFJiL//d0x4OVD6UXzYiw4BWezBgZyVYeh+ pl1kfP7NIPQq85a48dFNi6A2LFyIiUKa6ym6HQM2xAzxp+bj1Y9AqIJw/hlccRvW7uKX NYnjzZXIDK+IR3d3/hcrGspMZhQbpIjdJhcAENIUpfCX25U10GROQAG+FS2c9R4vjBTM SHfiyfv/KhXd1H2vy3uLEtGiPuJaMFbMqSdmHLUBubirkyPLzfK7J5oRL9bZM3FFVu7g IBaCZo2ancycnqoXq/DzUXYtxme6q8Gh7vMix1QM8JGxcmbGfzLdLkxysPWTta5ZPc6B Vdug== ARC-Authentication-Results: i=1; mx.google.com; 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 l59-v6si3180972plb.519.2018.08.29.02.38.23; Wed, 29 Aug 2018 02:38:39 -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; 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 S1727803AbeH2NdS convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Aug 2018 09:33:18 -0400 Received: from mail.bootlin.com ([62.4.15.54]:46056 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727107AbeH2NdS (ORCPT ); Wed, 29 Aug 2018 09:33:18 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9E828207AD; Wed, 29 Aug 2018 11:37:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 6EB002071E; Wed, 29 Aug 2018 11:37:15 +0200 (CEST) From: Gregory CLEMENT To: Jisheng Zhang Cc: , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andrew Lunn Subject: Re: [PATCH 3/5] net: mvneta: Don't check NETIF_F_GRO ourself References: <20180829162456.2bd69796@xhacker.debian> <20180829162836.2551ba46@xhacker.debian> Date: Wed, 29 Aug 2018 11:37:14 +0200 In-Reply-To: <20180829162836.2551ba46@xhacker.debian> (Jisheng Zhang's message of "Wed, 29 Aug 2018 16:28:36 +0800") Message-ID: <875zztjyyd.fsf@bootlin.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) 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 Hi Jisheng, On mer., août 29 2018, Jisheng Zhang wrote: > 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. this one is not a fix and it should go to net-next. And for the patch it looks OK: Reviewed-by: Gregory CLEMENT Thanks, Gregory > > 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 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com