From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9929A346FA0 for ; Thu, 11 Jun 2026 12:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781180612; cv=none; b=RjOed/uIi4LIE3Ay9DRJnS5XbBJ+qijH+cGICN7U7Tk4XQvUl9qDYL7SVzvFCFuwDlO3wQ+3og7+v9dTvGGOnWAO/kNSkYP/NXRjCCYwVs5Vhkug+/aRd1GA+p/xj1aSe4YiKRoVjQtHgZ6R98zeZWexQUenhbpbi3fDGyrL+Ng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781180612; c=relaxed/simple; bh=5o4uZfIewxYg8nMi5ai68NOliBQBC5fgwexMfo7Y0Io=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jHrg+qBDhBLoCRcSphxz1esjhaC178Lu/PF02aWrGmzygDmRM1MQavJQHFCkRYadbGGNcjYibwzjr3lYuqrLnrIEIVc4PvAXhluOwPT14M4LHs/FTmB8cr0s/EXyoWt8P5pSdbjOBjHWsIz/ZHFbMENivBbcB+pLJ/3Ci/W6tA8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=rDMyA0To; arc=none smtp.client-ip=209.85.216.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rDMyA0To" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-36d98b9aa9aso6776056a91.3 for ; Thu, 11 Jun 2026 05:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781180610; x=1781785410; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XWWde8oTiwpIrCzHwuGTBaaddX/30yZJJn3ORVLoQD4=; b=rDMyA0To7eYCGKdkD0X1hvFeSWK3dK1uJej6aK5E6la/0LYWBBMuh44DuxHEztONY+ YpaNPMZP9micyD4LIG5bP+vxSxX+N6LIEd90f9ZpbsdTcksPtX/HJAPbe2Lt+XaZLdgV FAoHhuGV/8Efx3rRn7JqEZcj/KcnAPgmDicH0/SpD+V0yl/VjC5DWuX3PhxWWrdRBHKe Y59GlYJI9M3uyuBBL14k1YVjOq6cFqshbXbIsc0J77R2kaUz5AJY4meFRazr7+MfpoNF DRsA2Z+fM8PXfIatGLImrFpICNfQtrMGp1qL/7wjIoDIo17wbhPdSpa/QQXdGmprOulY jbmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781180610; x=1781785410; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XWWde8oTiwpIrCzHwuGTBaaddX/30yZJJn3ORVLoQD4=; b=P6z+FZFHx6A/7EVqkBxaWktsxvhuG/q6MO1xYMMobP134kiA2l5hgUczSqw+idzVXv XXXv74vxH01bUXSCSMittrZhSSzfsRuJ3g/qXPpPMezXWFEQpjedtbpMR70A+E4wyo06 x3zlevbku0k2vJwBHnbXZeXjadsM0l00lT6eGONtJp95z69CGttQWnJZiK+EjUQHweza KDAXHkO6SXsjMi5bWYTHVYUS0CMMqHiYx+vjSOxZKZWPN6BYsGKzvpOExyPeuGW/G2Pw H9iqEkx/eZMF0kPhdST76sZib09FCWhKVWu7YAHSuSv+zGx1aRlwCAG71abD74YqDNVr QGDQ== X-Forwarded-Encrypted: i=1; AFNElJ+HaLyQKfXkBxRGek277R05khb6s/6g3b71lJxF6LLX5CVQi4pz+blHPbAN0U/Ey+HTPXJNZftKalAgbto=@vger.kernel.org X-Gm-Message-State: AOJu0YyCHxgTH/FGXh7BM0HE5ZfeOpdaoonRPZOuLjchdFNjg1ACtMg+ VImpFNnlVjwK1ct/4xVEatXMpdKe4mqYtEzn47gQ25Y8RkUYyzN68ut5 X-Gm-Gg: Acq92OFbUw4O9WB6I9D49AxgqvLnPsNLoHJKNMOoZUw0PjxRgmFhuwDNicH8lbJCUvb ganx4eeWe/hJos7VfPCCoEWwmHxWmn418KnZWAFrwCj2uISbOsoZadpPgqnvNtX/mupcFY7Z66v lsyyZ+KIK3LcTQDU+CisggHosFvzYXYsbITrnwBpIb0Tjh1fLtyaFyCNtcpdgJ5OFjwb4IIC8rs JA+kYTxZ7b+Y3OhKfhdCha3seS7oN19Od1xJRefX5zkxUx3q8TwijfA5FgBJbrd32Iv24HZNx8N jOqD1qDoi5PhJOXSOj6hPs1DNbVD5WhDtejiQQWvNtzBmdcRQ9GHe+B5vAje5AB8hsQwjqsDW47 g9gNsB94xvnmqUQ+BhhmIV+RYSDlxtebYXPzuqn/pmdQe+vv7Eau+QmCNk7iY7EIzyq93chCxRK hvt9GKSOkp65Jg+MacIUYJCZTTxIiXcihPun06SFn1EA== X-Received: by 2002:a17:90b:3a05:b0:36d:b12f:613c with SMTP id 98e67ed59e1d1-3779f186dcfmr2904451a91.10.1781180609829; Thu, 11 Jun 2026 05:23:29 -0700 (PDT) Received: from [192.168.89.2] ([27.232.220.71]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3774f4c2e5asm2564395a91.0.2026.06.11.05.23.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jun 2026 05:23:29 -0700 (PDT) Message-ID: <61bf60fd-2ccb-4d23-be5e-041c7c312510@gmail.com> Date: Thu, 11 Jun 2026 21:23:25 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] xfrm: extend ESP offload infrastructure for packet engines To: Leon Romanovsky Cc: Christian Marangi , Antoine Tenart , Herbert Xu , "David S . Miller" , Lorenzo Bianconi , Andrew Lunn , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Steffen Klassert , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org References: <20260523121522.3023992-1-hurryman2212@gmail.com> <20260523121522.3023992-2-hurryman2212@gmail.com> <20260611115646.GN327369@unreal> Content-Language: en-US From: Jihong Min In-Reply-To: <20260611115646.GN327369@unreal> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/11/26 20:56, Leon Romanovsky wrote: > On Sat, May 23, 2026 at 09:15:20PM +0900, Jihong Min wrote: >> Some ESP offload engines operate on whole ESP packets rather than the >> generic software trailer layout. They can generate outbound ESP padding, >> next-header and ICV bytes in hardware, and inbound decapsulation can >> return an already-trimmed packet with the recovered next-header value. > > How does this differ from the existing IPsec packet‑offload support in the > Linux kernel? > > Thanks Hi Leon, The short answer is that the series did not explain the relationship with the existing XFRM packet-offload model clearly enough. Existing XFRM_DEV_OFFLOAD_PACKET already represents the high-level model where hardware handles ESP packet processing instead of only crypto transforms. What I was trying to handle in this series was a narrower case: EIP93 is a look-aside crypto/IPsec engine, not the netdev itself, so the Airoha netdev had to attach that engine into its TX/RX path and let it generate or consume the ESP packet framing. The extra hooks in this series were meant for that look-aside integration, but looking back, the split between the existing packet-offload model and the new plumbing was not clean enough. At this point, though, I think the right thing is to withdraw this EIP93/Airoha series. The reason is related to the SOE work I mentioned in the other patch thread. Many Airoha SoCs also have a higher-performance IP block called SOE (Secure Offload Engine). I recently wrote and tested a driver for that block, and I am currently carrying it here: [kernel: add bonding LAG XFRM offload infrastructure and Airoha support](https://github.com/hurryman2212/OpenW1700k-test/commit/fbfe8f919f836bb62b3849f803865a4d9b8dc76f). With the EIP93 path I could get around 1 Gbps, while the SOE path can reach about 5 Gbps in my current setup. Because of that, integrating this EIP93 ESP packet path directly into `airoha_eth` is no longer the most useful direction for Airoha Ethernet. That said, SOE exists only on some Airoha SoCs. EIP93 can still be useful on other platforms as a look-aside ESP packet offloader, but I think that needs a cleaner infrastructure than this series had. The look-aside offloader should be able to live as a separate module, not be tied directly to one specific netdev driver, while still allowing compatible netdevs to attach it into the XFRM path. I think that needs a more general infrastructure extension, so I would rather revisit the EIP93 work later on top of that kind of model. Sincerely, Jihong Min