Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp346712lqr; Wed, 5 Jun 2024 07:50:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUF2Ptu7nVOnV/WTMDnUMdHG9vxLGgOPfiG1Kwy4OOfcfFaANKwhRiIeo/vWWmYQzbe2iHpUnzCmftK127u6pFM4BnZMcNINspIlEO1jA== X-Google-Smtp-Source: AGHT+IHl39j4k1IggWZiDiuYvn9xrmP1bs2Fy+s3oCBozvAwcBbMMxKUpRLsBZxjJeHdFo5iIFRt X-Received: by 2002:a17:903:1cc:b0:1f4:5a89:39a4 with SMTP id d9443c01a7336-1f6a5a0aebbmr32903365ad.21.1717599009377; Wed, 05 Jun 2024 07:50:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717599009; cv=pass; d=google.com; s=arc-20160816; b=rhDpg44BGB2ou7aTvPTyoQATLCpEfuOg1UnmrahJ4WmSef6XoNhRIbVbiYLsEfv1Wr 6Z7hQN6j8OCteksvS0uBygHnsol8ssI3yweDZGvZfBIG1gPabB8iRaHeVmiuUiJJUXWP Xhv7KKX4v5tGMuh4OlJIAJBLwcku7vTiZ5d4GaAyxRjYHAl0T3bEN2/ZpmcQWSayNsNX W8/kd4IueZNGRYSsUSWyHyDMqi22Y4+yYae4nb9piUQbSFCAaokIz9Tkg0qEAvHYbaM7 dOJt7ijycsMJ4KPRyTkDrLkyxDlcmVdRsB5+wwq231Ocq6uW+ntwRyUxFery8GeonQ9I PhJA== 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=ZF+Y57P9kdEiy4scC2Ivo4PpX3jyFJxVU8N7S098Rcg=; fh=TisnM2lczAQ10YtDIp/vczIiuLA82XuRd5SevmhX4YA=; b=NBuTxKUjWdlaSKF5KY+DSsCel4UndJVXOnutN7NYjnRgxIdH/JiuEMbF9ldC87cA0R K5eLwXhCOWg+nREJzZIPNN+xiaqo/TTJf3rIx/Mu7BMlIX69HZxmNOCBp2DBTqXxb2bA AafsfjPX59Qxf6Ght3lqJexijbj1ejY+8ZbLNPP6iYb7G7tqo7ppoAcjfV/L+9uIGdF/ nAG1OWGVK0ry9Vk/FEvuOaFiry+V69OS5aTs+VEBqvlNAH9I/daS8ktlUwnNhtEqkxeo ajFW7+09EZZBqsYkab0QHFU4bavd7pU2MaXX+WgAVA+e4UIVOxGb+e1LO+hqR7tKgqzX 64Fw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@orange.com header.s=orange002 header.b=fR0rn0BC; 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-202771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=orange.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323dd6easi18262765ad.218.2024.06.05.07.50.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@orange.com header.s=orange002 header.b=fR0rn0BC; 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-202771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202771-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BF311B27F1C for ; Wed, 5 Jun 2024 14:24:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E40141B95B; Wed, 5 Jun 2024 14:23:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=orange.com header.i=@orange.com header.b="fR0rn0BC" Received: from smtp-out.orange.com (smtp-out.orange.com [80.12.210.121]) (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 1BB0623D7; Wed, 5 Jun 2024 14:23:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.210.121 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717597438; cv=none; b=FhnXJzry5bdH7Vt3Xd1UvBKrLRngQaxffRhcTgKT6X8eFXrIRabMNxxQnyjtd19mHp7Hlo9Nl46sqzU0sJBywCFrPVIo1UU7ZmyKhzk6CtNFHLewdhE5IVg6ij0i5efve7OMFkP5IEV6Ekl9ck7W34LGv3glCsHLJUjLfO2BLNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717597438; c=relaxed/simple; bh=ZF+Y57P9kdEiy4scC2Ivo4PpX3jyFJxVU8N7S098Rcg=; h=From:Message-ID:Date:MIME-Version:Subject:To:Cc:References: In-Reply-To:Content-Type; b=ZJWfIFd/t5SNwWtt5EUoI71oI0maLBMrCIFahNiNlsis70H8pQjX+BZDb96Gz0Go1Zuz7Ss5xuAfGkQKSlq2buKZAu4D+ZRwS/0jxiKMJq8AQNrOzB5FcztvpPsCvhadcke2rxPK+kNourustfBZuyLUxrTu8WqDEpH5zdIvzLM= 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=fR0rn0BC; arc=none smtp.client-ip=80.12.210.121 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=1717597435; x=1749133435; h=message-id:date:mime-version:subject:to:cc:references: in-reply-to:content-transfer-encoding:from; bh=ZF+Y57P9kdEiy4scC2Ivo4PpX3jyFJxVU8N7S098Rcg=; b=fR0rn0BCJEGVcaVTbBpUIJVNN5f2JL/j5C7/JFh1c1CCNSgnBPrOIeij ccIyGz8xnwOLfGV72ZTkfhNMnl1A2YZLb9n5X1D2iXvbylrPbSZ6R53nE 2NOAs4CxHGQW728mCwg/14NCRYvwmiVy3asjRis+rtqonTiaMfU4ILRKV Jl30vd3Hc/owfahSVuHK5bpGp5Ma6U0jO/WRGL8G9YTuovWN+GMe8W85N 6mVtjIrlIgpFq2MZcxtFSrnVsSseePgoO3h75QydQ0Fo+blzJo3AMh5A2 TyT+sgkVm9tLby3aNw5S8l0RkM8cOrVF6oSAEOP7i4Fdtoi2Bj7JoAaDk w==; Received: from unknown (HELO opfedv3rlp0d.nor.fr.ftgroup) ([x.x.x.x]) by smtp-out.orange.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 16:22:45 +0200 Received: from test-mailhost.rd.francetelecom.fr (HELO l-mail-int) ([x.x.x.x]) by opfedv3rlp0d.nor.fr.ftgroup with ESMTP; 05 Jun 2024 16:22:45 +0200 Received: from lat6466.rd.francetelecom.fr ([x.x.x.x]) by l-mail-int with esmtp (Exim 4.94.2) (envelope-from ) id 1sErX8-00CKl5-9B; Wed, 05 Jun 2024 16:22:43 +0200 From: alexandre.ferrieux@orange.com X-IronPort-AV: E=Sophos;i="6.08,216,1712613600"; d="scan'208";a="155592919" Message-ID: <6df76928-be7f-483e-9685-88ee245ef1bf@orange.com> Date: Wed, 5 Jun 2024 16:22:43 +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 v5] af_packet: Handle outgoing VLAN packets without hardware offloading To: Chengen Du , Willem de Bruijn Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, kaber@trash.net, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20240604054823.20649-1-chengen.du@canonical.com> <665f9bccaa91c_2bf7de294f4@willemb.c.googlers.com.notmuch> Content-Language: fr, en-US In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 DQoNCk9uIDA1LzA2LzIwMjQgMDg6MDMsIENoZW5nZW4gRHUgd3JvdGU6DQo+IE9uIFdlZCwgSnVu IDUsIDIwMjQgYXQgNjo1N+KAr0FNIFdpbGxlbSBkZSBCcnVpam4NCj4gPHdpbGxlbWRlYnJ1aWpu Lmtlcm5lbEBnbWFpbC5jb20+IHdyb3RlOg0KPiA+DQo+ID4gVGhpcyBhZGRzIHNvbWUgcGFyc2lu ZyBvdmVyaGVhZCBpbiB0aGUgZGF0YXBhdGguIFNPQ0tfUkFXIGRvZXMgbm90DQo+ID4gbmVlZCBp dCwgYXMgaXQgY2FuIHNlZSB0aGUgd2hvbGUgVkxBTiB0YWcuIFBlcmhhcHMgbGltaXQgdGhlIG5l dw0KPiA+IGJyYW5jaGVzIHRvIFNPQ0t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