Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4176176ybc; Thu, 14 Nov 2019 23:38:21 -0800 (PST) X-Google-Smtp-Source: APXvYqw9bC6JoEACz47/IKP2uuEauTKz0zW5b+ArtC63T1eR4YNeOWUmvzUjXFTmA6UnOvZdxZ2J X-Received: by 2002:a17:906:278a:: with SMTP id j10mr11988942ejc.125.1573803500972; Thu, 14 Nov 2019 23:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573803500; cv=none; d=google.com; s=arc-20160816; b=wvFRTW+v83DJ4BLYTGfaoOKKMD+HUq1cIvQIuJFjJq93U1BjqUHOhGiiKR+l0l7jJV +yOO3QnQaF0Uf2cWouLKE6Y0XohvKisK/yk3hnvBn8w4nSkECRfZaEWrvjN2Niw33Nya gvDZvc9klhexdGXgPctKb7H2prBpJF96TbqjeoqGWmM9TY/D8QX14vrmPVyoEJtOY3Og P+QdyUqQK/KKEbnUZQrEugQZ89vbcxLqTGHY6Ydpc+HnpVMdQhEZJcNCVQhZVHN1C74i 0kW/DC0KwcSEIBv7qmRpx3jBlhb0okC3gCldZt8vCk5qWfrS3IDKyIWs4xfoXvRd+iJu aqhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-filter:dkim-signature:dkim-filter; bh=auYJSdX39uan+gvUCsaNo2NaaQLgfRyrUszL7DhJUb4=; b=csP0slzID0u0Zb4CdkLQJ4zKhfxDncFMoGUr9Vsjgqb7YwOLx8oAEeEsI12ubnAc2H c8n4+8sJASzoJC2GOskSvJEnAYMSM17yegTQ7hJ3VyFduPSi/8/LS+pvy8pDsVblw2LB aLNRYcsVl/axn3vYSJwaycudIaHgxMjRu7as6Em7za03FcrheyH+5dxohf2o6YLiSToH 4rM1vVJLh0MQSe2S7O5kID6YHuud2VZseQp3d8LvfMFKbekzNOWWskt4eV9gE/QnTvyp DRNtK3YVIaGvPpeRGfv7Sz1lYHm3LYc7lb/WzyUKgoOdHM/7IP+UjSAAGpHyD/GmdBra a+Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dlink.ru header.s=mail header.b=SfuWrd47; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 o22si5537229edv.175.2019.11.14.23.37.49; Thu, 14 Nov 2019 23:38:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@dlink.ru header.s=mail header.b=SfuWrd47; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726997AbfKOHgZ (ORCPT + 99 others); Fri, 15 Nov 2019 02:36:25 -0500 Received: from fd.dlink.ru ([178.170.168.18]:45614 "EHLO fd.dlink.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfKOHgZ (ORCPT ); Fri, 15 Nov 2019 02:36:25 -0500 Received: by fd.dlink.ru (Postfix, from userid 5000) id 5F79F1B21219; Fri, 15 Nov 2019 10:36:19 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 fd.dlink.ru 5F79F1B21219 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dlink.ru; s=mail; t=1573803379; bh=auYJSdX39uan+gvUCsaNo2NaaQLgfRyrUszL7DhJUb4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=SfuWrd47XdQioLUmZkIhQ3OMs+HeaDWSatiVwQEdzY6ZWJg2pT1l1h5EpRzPJOv1V iwF6IOh6Wr3/0/ynRcejg8zch7KZVc5GEmUbQMUJVgrUDcjeky25QHC4/jtsEcdxeX QQyOIe6XZqOm2o6R0+fxyLS063xmDUIB+DB8uGYo= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dlink.ru X-Spam-Level: X-Spam-Status: No, score=-99.2 required=7.5 tests=BAYES_50,URIBL_BLOCKED, USER_IN_WHITELIST autolearn=disabled version=3.4.2 Received: from mail.rzn.dlink.ru (mail.rzn.dlink.ru [178.170.168.13]) by fd.dlink.ru (Postfix) with ESMTP id D61961B203C6; Fri, 15 Nov 2019 10:36:08 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 fd.dlink.ru D61961B203C6 Received: from mail.rzn.dlink.ru (localhost [127.0.0.1]) by mail.rzn.dlink.ru (Postfix) with ESMTP id 9C6611B21209; Fri, 15 Nov 2019 10:36:08 +0300 (MSK) Received: from mail.rzn.dlink.ru (localhost [127.0.0.1]) by mail.rzn.dlink.ru (Postfix) with ESMTPA; Fri, 15 Nov 2019 10:36:08 +0300 (MSK) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 15 Nov 2019 10:36:08 +0300 From: Alexander Lobakin To: David Miller Cc: ecree@solarflare.com, jiri@mellanox.com, edumazet@google.com, idosch@mellanox.com, pabeni@redhat.com, petrm@mellanox.com, sd@queasysnail.net, f.fainelli@gmail.com, jaswinder.singh@linaro.org, manishc@marvell.com, GR-Linux-NIC-Dev@marvell.com, johannes.berg@intel.com, emmanuel.grumbach@intel.com, luciano.coelho@intel.com, linuxwifi@intel.com, kvalo@codeaurora.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: core: allow fast GRO for skbs with Ethernet header in head In-Reply-To: <20191114.172508.1027995193093100862.davem@davemloft.net> References: <20191112122843.30636-1-alobakin@dlink.ru> <20191114.172508.1027995193093100862.davem@davemloft.net> User-Agent: Roundcube Webmail/1.4.0 Message-ID: <097eb720466a7c429c8fd91c792e7cd5@dlink.ru> X-Sender: alobakin@dlink.ru Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Dave, David Miller wrote 15.11.2019 04:25: > From: Alexander Lobakin > Date: Tue, 12 Nov 2019 15:28:43 +0300 > >> Commit 78d3fd0b7de8 ("gro: Only use skb_gro_header for completely >> non-linear packets") back in May'09 (2.6.31-rc1) has changed the >> original condition '!skb_headlen(skb)' to the current >> 'skb_mac_header(skb) == skb_tail_pointer(skb)' in gro_reset_offset() >> saying: "Since the drivers that need this optimisation all provide >> completely non-linear packets". > > Please reference the appropriate SHA1-ID both here in this paragraph > and > also in an appropriate Fixes: tag. Sorry for confusing. The SHA1-ID from commit message is correct actually. At the moment of 2.6.31 we used skb->mac_header and skb->tail pointers directly, so the original condition was 'skb->mac_header == skb->tail'. Commit ced14f6804a9 ("net: Correct comparisons and calculations using skb->tail and skb-transport_header") has changed this condition to the referred 'skb_mac_header(skb) == skb_tail_pointer(skb)' without any functional changes. I didn't add the "Fixes:" tag because at the moment of 2.6.31 it was a needed change, but it became obsolete later, so now we can revert it back to speed up skbs with only Ethernet header in head. Please let me know if I must send v2 of this patch with corrected description before getting any further reviews. Thanks. > If this goes so far back that it is before GIT, then you need to > provide > a reference to the patch posting via lore.kernel.org or similar because > it is absolutely essentialy for people reviewing this patch to be able > to do some digging into why the condition is code the way that it is > currently. > > Thank you. Regards, ᚷ ᛖ ᚢ ᚦ ᚠ ᚱ