Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3023511pxb; Sat, 6 Feb 2021 16:59:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzVkdEx6pRnticYWu0oF55ggE/1/K/tq5hRGwDKGIKpGIGovzkEypyLSNFUImJhGEFKuDc X-Received: by 2002:a17:906:63c2:: with SMTP id u2mr3695745ejk.346.1612659594787; Sat, 06 Feb 2021 16:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612659594; cv=none; d=google.com; s=arc-20160816; b=q8bxnJA+K2Hh0klHmxJGWPGJd3yMPMxdROAC7UdtWRyFJnMLLjXdwlja2iH3HdubLv 5MatVptk0O5fdjJn2yfY7S8SvLjSamn/FZqpsjOKrBR3APy76AfrnuCLxlN8RTFDE40O ibmyNRyG8S9RsXc28tOvu9DfpJJpJ7alHO/ULh+k4BPh+DEsgmTB+kJWdsUcKsepIPbf 7uiQauIQnS4u5Mp8PdvhV3DUvu2XrcLh9Kj67yEtM5ClAUMm+jlMnFP3iTv+eZRLPHNI IxzRPDuhLXxZ/M6Ye+z0+JmG3TG43jMbU5LLQ9ElEjOJ5IsCs/8WyhoyjUfAGah6Dax2 ZXlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=l+m1nTQrM4Mq8BcwTHO3kLDRZWcKfVntvZDZWgzNswc=; b=gk+BQxleNlafVUYQT9cencwFgFVex2IxS8LZy985uQYSLMxa0+8YeUpZFDptHOQTwf grPDczQxXkzutTMURR6DkPxUqSBa50MnKEV25e9cUa8W3sYHJGa77xjCwXJ9aBcTucma mFT1ySeEdoYRys6mzNo6egVOIXKYYYitfM/f86Wrrzuhx4fzcYIheFL0hsXlJCrNhfb6 nwNRif9hdNR4ndp3KLqEm3rxmMtI67gfAvWuwFI+GfwRmyLVS2xwRoJjmUz+LySe9+DP 8AS8Y8ChbBtSQ/y82Z2OQ4qKjkiKzHqvTnNXf+O1nO0MKwEO0/YlS303jzEihVoGLir3 UgwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZVYLhVWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk14si2802024edb.22.2021.02.06.16.59.30; Sat, 06 Feb 2021 16:59:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZVYLhVWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbhBGA6E (ORCPT + 99 others); Sat, 6 Feb 2021 19:58:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:59884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbhBGA5y (ORCPT ); Sat, 6 Feb 2021 19:57:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9961C64E8B; Sun, 7 Feb 2021 00:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612659434; bh=2RKfvxmY71nPWHYwG+9Kb2b+6Ca+t+s+Q+MmSO7aDHQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZVYLhVWkkiAUgT4LMG0nhjOCRn1UyPPPk/LgXCI5QqWnhX7fHDSa8m1D6IsF4rUK0 9yOKwjoetcH6JogT1FAZ6sFvlg2E3FzEnj/woZbJl6FgIk7rgag8ky0bGIvnx0cZCD H+LWybgpg1sDZJHaar2aPqWho9MmgFtKCHtoG0Tkl4rDsau2c2Z8sO1Vu9fmaKUGHG vna8IS9KMDG8TzMO4vH+L9ukB/GhM2xfVhbf7NISvEHcfVMzeAmSNt6Z9aIaE5vN3H 3coAiYNBhz7RQx1pgmd0VN9Q4fd9/G6+U3gtWZK+R/96h582SsqLRrbYNiFCjCdg2S 8VQXv9c8HwJIg== Date: Sat, 6 Feb 2021 16:57:12 -0800 From: Jakub Kicinski To: Willem de Bruijn Cc: Xie He , "David S. Miller" , Eric Dumazet , John Ogness , Tanner Love , Eyal Birger , Network Development , linux-kernel Subject: Re: [PATCH net-next] net/packet: Improve the comment about LL header visibility criteria Message-ID: <20210206165712.69f3281b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210205224124.21345-1-xie.he.0141@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Feb 2021 21:51:36 -0500 Willem de Bruijn wrote: > On Fri, Feb 5, 2021 at 5:42 PM Xie He wrote: > > > > The "dev_has_header" function, recently added in > > commit d549699048b4 ("net/packet: fix packet receive on L3 devices > > without visible hard header"), > > is more accurate as criteria for determining whether a device exposes > > the LL header to upper layers, because in addition to dev->header_ops, > > it also checks for dev->header_ops->create. > > > > When transmitting an skb on a device, dev_hard_header can be called to > > generate an LL header. dev_hard_header will only generate a header if > > dev->header_ops->create is present. > > > > Signed-off-by: Xie He > > Acked-by: Willem de Bruijn > > Indeed, existence of dev->header_ops->create is the deciding factor. Thanks Xie. Applied, thanks!