Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp578153lqp; Wed, 22 May 2024 12:55:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpDoP5TaAIy+CRKs/MqbEGotTvRwHz2LgLNUQBXqlR6m0Vbi01YqJl4w1kWluEnTqkLXw6XmuLJppFfI0ermuaIwO2hKhYsbpNN/9Azg== X-Google-Smtp-Source: AGHT+IGY3yjPHslguw7rxc4iI9UQMr6aPw7CAi2Yt2Z8Lo1Dd7zyaNcqWrbX7RqXviuLy6nbWFQM X-Received: by 2002:a05:6512:12d3:b0:51a:f2fb:b13c with SMTP id 2adb3069b0e04-526bebb4462mr2259679e87.11.1716407702686; Wed, 22 May 2024 12:55:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716407702; cv=pass; d=google.com; s=arc-20160816; b=vpM3Dc81eMlZJPxD9Zix8FO3Pvn/pUpXCi3VLSI/R3aV7Mb1VUAVVuH994AEPTc4vX Urdlj3kku7bMtG6yK2/686Zk6NW2zU06eZrcbKmTDzjgZscn5m8fkStY/4SFZSjUb0pz Pk+tBqcNo18xKpMdX+bv8Yi4ozGFjGlwerg2eWo+evBqTLMavHD8hokdYDEk5DcrVvt+ gEGdVO0RnxIr/G7+MQAC8UjNosGThGRC8RGpNajbifsloVKxugN3dAX7rJGmuNm7TE5k 41C3QxB9iRnqVkQQ9heLdvMoqkrtnl6iCUA63ZQ0PZZ4yJbT4vHyAmDXamOHQACpYL/T kE2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:from :dkim-signature; bh=/H1/xp0OnLXFw9PSFNhkzZ5NE2daogZ7q1eOe2leqqY=; fh=Cnl+HwFjjjegIhJLhEA5aStzDK8nMIi+bPzH7jiMh5g=; b=cOFosu2751koMl2QIlao/IOPOrZ77QQUcRDPn8SgiWaXI4fFAP2TWZnD4oBRxB+uE4 Q39eVCcf3s8MZ9hTLF1C3Aj5wLvRBo+v0J8EDqWQWDnD5itZLoioeFjonWFQtb2TTDA8 kMZ5W+rmgHbSxYWCGfJuaOq7ouAKDCqUXWmOE0mfqOoCBLslvRpvhweBngRAuJeH2LQf Iawa3yHUzhbzxSD2NcMhEYALvCwg9g132XI2EhOWEmcSnUhvfdmVgB72rTG9/qqeeqFU 2s700Xb0GFZTbmNMlpXDr53LVtXQK5FMpCt5KwTKdVC1bArtUSix7R+xJH6Sesp3nCAg QRTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@orange.com header.s=orange002 header.b=mq3nvLZB; arc=pass (i=1 spf=pass spfdomain=orange.com dkim=pass dkdomain=orange.com dmarc=pass fromdomain=orange.com); spf=pass (google.com: domain of linux-kernel+bounces-186686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=orange.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ea08e6c2si10058210a12.4.2024.05.22.12.55.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 12:55:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@orange.com header.s=orange002 header.b=mq3nvLZB; arc=pass (i=1 spf=pass spfdomain=orange.com dkim=pass dkdomain=orange.com dmarc=pass fromdomain=orange.com); spf=pass (google.com: domain of linux-kernel+bounces-186686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=orange.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 388751F21EFC for ; Wed, 22 May 2024 19:55:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30DAE146A95; Wed, 22 May 2024 19:54:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=orange.com header.i=@orange.com header.b="mq3nvLZB" Received: from smtp-out.orange.com (smtp-out.orange.com [80.12.126.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58B9323CB; Wed, 22 May 2024 19:54:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.126.238 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716407691; cv=none; b=f0Kum0ej9H0wgYdiXJ4HOu1CoNSUridE78pvcSnDSajz3wD3Q+W1F9yfLcRlqdbvdRjAtv06dNWQpPeIOYuQ0vauLLYWfSA3Hd3yonjLKM1aqE/y3iyqZv8D6u/Neby9PKIGh4C4AvKv5tmAC/zSU+P4WwE0Hg55XlNTeIVIWew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716407691; c=relaxed/simple; bh=/H1/xp0OnLXFw9PSFNhkzZ5NE2daogZ7q1eOe2leqqY=; h=From:Message-ID:Date:MIME-Version:Subject:To:CC:References: In-Reply-To:Content-Type; b=FKcycE3JjNAj/9QIQRwrXOuzhlJ6aVRFkiA1VJ6te/KOQtTP3OfN7aup3Ahwhvtzc6KQdofRkwKA0q8ApdmTVlYpLQNm17JQdltAnFo5f4LarWU8T6UG4Llj7AsrJrLf3kTckhveGIp3U0ncftTdgQ7j3ICIvcXn5U4zwj+FuKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=orange.com; spf=pass smtp.mailfrom=orange.com; dkim=pass (2048-bit key) header.d=orange.com header.i=@orange.com header.b=mq3nvLZB; arc=none smtp.client-ip=80.12.126.238 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=orange.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=orange.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.com; i=@orange.com; q=dns/txt; s=orange002; t=1716407688; x=1747943688; h=message-id:date:mime-version:subject:to:cc:references: in-reply-to:content-transfer-encoding:from; bh=/H1/xp0OnLXFw9PSFNhkzZ5NE2daogZ7q1eOe2leqqY=; b=mq3nvLZB89spL+nj+vycHRg46DOEYPcxmWKgm+r9MVucx1OadBH83qSy nv0k28Vs6MkkzpL5aAKVXFiqY0EVNLMa+iX7rAN0M1MM4WsZLvgygzu2x QXZI/Z7Ps2Om3HAuhHhcd2CVHl2IhLYRRsJ/nGz7UymZhQ1fU0FlbQOeO Mp2lkzvl+OuyhaSi4khIxWDO7E7snrKUX4u85nqHdYJawnOamw6z9Jb9x eXtAk1yozY4voDVlslrmckhUe2G5g9GtdDFatVCTJnTtPbvnNKGnH+kxt v2Rhu2HjWFAEb+KQQu06k/iPX235p+OUH6o7oxlfkwS+GE88qsiIJhI0s A==; Received: from unknown (HELO opfedv1rlp0a.nor.fr.ftgroup) ([x.x.x.x]) by smtp-out.orange.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2024 21:54:46 +0200 Received: from unknown (HELO OPE16NORMBX104.corporate.adroot.infra.ftgroup) ([x.x.x.x]) by opfedv1rlp0a.nor.fr.ftgroup with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 May 2024 21:54:46 +0200 Received: from [x.x.x.x] [x.x.x.x] by OPE16NORMBX104.corporate.adroot.infra.ftgroup [x.x.x.x] with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Wed, 22 May 2024 21:54:46 +0200 From: alexandre.ferrieux@orange.com X-IronPort-AV: E=Sophos;i="6.08,181,1712613600"; d="scan'208";a="145879807" Message-ID: <92edf27b-a2b9-4072-b8a4-0d7fde303151@orange.com> Date: Wed, 22 May 2024 21:54:45 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [PATCH] af_packet: Handle outgoing VLAN packets without hardware offloading To: Willem de Bruijn , Chengen Du CC: Paolo Abeni , , , , , References: <20240520070348.26725-1-chengen.du@canonical.com> <664b97e8abe7a_12b4762946f@willemb.c.googlers.com.notmuch> <664ca1651b66_14f7a8294cb@willemb.c.googlers.com.notmuch> <664e3be092d6a_184f2f29441@willemb.c.googlers.com.notmuch> Content-Language: fr, en-US In-Reply-To: <664e3be092d6a_184f2f29441@willemb.c.googlers.com.notmuch> X-ClientProxiedBy: OPE16NORMBX403.corporate.adroot.infra.ftgroup (10.115.26.16) To OPE16NORMBX104.corporate.adroot.infra.ftgroup (10.115.26.5) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 SGkgV2lsbGVtLCBhbGwuCgpPbiAyMi8wNS8yMDI0IDIwOjM5LCBXaWxsZW0gZGUgQnJ1aWpuIHdy b3RlOgo+IENoZW5nZW4gRHUgd3JvdGU6Cj4gPgo+ID4gWzFdIGh0dHBzOi8vZ2l0aHViLmNvbS90 aGUtdGNwZHVtcC1ncm91cC9saWJwY2FwL2lzc3Vlcy8xMTA1Cj4gPiBbMl0gaHR0cHM6Ly9tYXJj Lm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