Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2281157pxb; Thu, 11 Feb 2021 08:34:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3flGk/AHbctwH9OvsBYSx3Z8nxM93CUAhvxhZP1y8f0qrAH2zK7Kvm6UMNNljXO7CTWE1 X-Received: by 2002:aa7:dd4c:: with SMTP id o12mr8929188edw.180.1613061261958; Thu, 11 Feb 2021 08:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613061261; cv=none; d=google.com; s=arc-20160816; b=xaEKremftvOoWXrtFNz6IeCKRH6wXmr0hZk2TmZq5eqeBXuXsyZ/A1FsN3vE0/1ZW4 Cjgz+c7e3be3N74Psy5J94KPPB1H9zJf5vZjW0UTRrp7m6HCH0yT70iTStPMpDvYcP/H pHeLgDZhdvGvFiHRfdATItwLhDIvl01mRwVA8n93oX6s1V/+1/TLnYuZfXK4xQuYYiHu QTaUB6bffBFYIE4+DbtaeUWZh7rcKvSP2r3kQBPS7goX+fguFbrnLZx0Y4EFi+0Y3vGE 8LPIW5U5arya9w8M7SHFMzZBNByWoaNxccCzSa0FYql+tfUpe/F9zZ84RW5lHNgZ8EB6 zLZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=zG+RPQ/1WzKIs9dCorV9lcy7hGc77O1erpEe0x4xk4k=; b=UH26LXt4mjN+TH2PSG4cutUhc6voGkuHnmf6/dyh1ATVytHj73fB7LR5iSudVNIS/3 gw9oRmuEWg/6RLJvUMqgcBAdv0+SUMFjfVAoE3hLSBKNEo038BUMkazygstIjDg2Lkyn PzQZq/SCv61CAh2Sthwf5ckO6+qFvrnOV8hLQ508KilYXoGvgtW2orREBDO+lA7FI/XB tbYkXSjW29oRbtt4J8Q1IMSOeWVIdufEYy7To5AlcQsT3GHF7iRpfKTiE3ExYfs5NE+x WUaSy2fQPuaMmFzIYn+zETlWhAonVa/8Tlp83jgXPgRs38s38EMdNugci9JMRkvlOQPs i5Bg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si4186237edx.321.2021.02.11.08.33.55; Thu, 11 Feb 2021 08:34:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230119AbhBKQc4 (ORCPT + 99 others); Thu, 11 Feb 2021 11:32:56 -0500 Received: from www62.your-server.de ([213.133.104.62]:35602 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbhBKP1w (ORCPT ); Thu, 11 Feb 2021 10:27:52 -0500 Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lADrf-0005Ul-Ur; Thu, 11 Feb 2021 16:26:43 +0100 Received: from [85.7.101.30] (helo=pc-9.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lADrf-000J5I-NF; Thu, 11 Feb 2021 16:26:43 +0100 Subject: Re: [PATCH/v2] bpf: add bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_ENCAP_L2_ETH To: Willem de Bruijn , huangxuesen Cc: David Miller , bpf , Network Development , LKML , huangxuesen , Willem de Bruijn , chengzhiyong , wangli , Alan Maguire References: <20210210065925.22614-1-hxseverything@gmail.com> From: Daniel Borkmann Message-ID: <29b5395f-daff-99f2-4a4b-6d462623a9fe@iogearbox.net> Date: Thu, 11 Feb 2021 16:26:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.4/26077/Thu Feb 11 13:18:43 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/10/21 3:50 PM, Willem de Bruijn wrote: > On Wed, Feb 10, 2021 at 1:59 AM huangxuesen wrote: >> >> From: huangxuesen >> >> bpf_skb_adjust_room sets the inner_protocol as skb->protocol for packets >> encapsulation. But that is not appropriate when pushing Ethernet header. >> >> Add an option to further specify encap L2 type and set the inner_protocol >> as ETH_P_TEB. >> >> Suggested-by: Willem de Bruijn >> Signed-off-by: huangxuesen >> Signed-off-by: chengzhiyong >> Signed-off-by: wangli > > Thanks, this is exactly what I meant. > > Acked-by: Willem de Bruijn > > One small point regarding Signed-off-by: It is customary to capitalize > family and given names. +1, huangxuesen, would be great if you could resubmit with capitalized names in your SoB as well as From (both seem affected). Thanks, Daniel