From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 8C45E34D3B5 for ; Mon, 3 Nov 2025 01:51:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762134665; cv=none; b=aJPJkCGNzWxWf33CEUV8DlsFAXIrJZz9InasNjgT6xICOZzWR3QkPUn4rOp6hxnPYBjvDTyZ6a/jEGhIh0UQib0xHcTSJi+bcLvvxVkKCIb6Ye21lJLJfSwF7d6x+JWr8wkHInnxr9MqGvCDX2Z/deybiLSY97iHVIiO8UuBjZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762134665; c=relaxed/simple; bh=jBrlYcqe70CRFPI8eWpEHN0i3WJ0kusKzZ2MB0TsxBA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DtbfA1kaRjpPgL3Zo0lE5pMFNpoqgBxfRxQsS+X1NUeNKKm0SN/dsv+ugHBLc6fVP31rbE4Ljsf49gPxdn+1XJZAmLfJMvFWDYbT13fcV15POtabDWPt005/g/dWQmwFYTWGvDbJbjljAdBHt/SPF2mGbszPbwqoc7nfhUFMePM= 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=Gz447jUx; arc=none smtp.client-ip=209.85.216.51 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="Gz447jUx" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-34077439166so3155409a91.2 for ; Sun, 02 Nov 2025 17:51:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762134663; x=1762739463; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Lh5XxpkroE5dbbQU8eQ46vBGwFwM21sJCPsPPmpqn7w=; b=Gz447jUx34QLyxGksRc5QIYrj5C2vZMNJIAeFzz0HP2ooxu/aiVXl6ZPUIL/pq5+On ea6oxXMSSBX7VrSnSGLHQuuWM6wWJjVTa4CcndyXy4BgVKsl7vrQBQE2Nexq9khXNmHe niu6ocUJmHnc9w3BB0jbjciSWBMUuSmtXPX+A6vlODFcHirAvlbiMwABBaJIG/gmSexT OQlADH6aO6jspiB7HxrHvMS/3jXsDTJUPjVoRufqLWc+mBKCdBs3DqL4hgURApkter5c 5UMeyaeBZhLowBVBEbegSwiUR1puCgbbTt8UyG1JKV27mWFwKMo2iTgs75HKn8JztXUI doRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762134663; x=1762739463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lh5XxpkroE5dbbQU8eQ46vBGwFwM21sJCPsPPmpqn7w=; b=NQKW41PVq+N+3YYt5FqPzVCyOM5p356upkX0EZm7dzgJdkFAqwvJzk+aaQoRp9P9cD dL+Dy2Ps7NSCDj7dNBw8CF9tdui9uvp+QDykzdgT+0y+9A8htvsMSpeAcezlH0k3bmS3 0BoYQhREF+HaGtjHuVzUg8/UIr4rfRxn1GGx+cUxgC5GP610riX+uHlLWC1+GOkQyt6n 4xjytSLzRPuTNtinIoX6CSnshISeNFR/RA2BUt/3F4pKx775mC86wMYUPKu0qjZajN+O uQudhXhyHm03FxnnjPwfmoQbG4wTn30drMyqkddP2PyUEJPEnw4rWINi6u+b0Peb+HCW 29Hg== X-Forwarded-Encrypted: i=1; AJvYcCU0YuM0mHiA4iL2HkshROrGJZFUoinjiBCmINeBDRIsbqc67Y2Xa8ltaTfoYYlrgxodcVV23ssZYnU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx8cczr6odhPhiPFrc3dCQMaHNx2dkzRuu8v2+ooHwVR6Q0l5BT KyOq2Dzwqw9oVF/U0EOzz25QKWeNGkJmGlrwlv5ngAW0aR3aHGl1B56F X-Gm-Gg: ASbGncsjVJV1l3KIABOGgC7WV1CKR9xO/At0oRLPsEIbwXxbSAbzkGxgEPmYWWDO+Nc h3aLWa4gdKBSmdPK06ueiWXAhUBJBAMnV4/lJjWtW8N4Y9kVr9X8TNKn0YEi3kzQ56zTriH25oC ejEiQBN6dJjkPa9fWVRjF5y2LnbewUx6qgwct8v0ujespAKtcOmxG7YBnYL86gYtKkt1C/vr/8N wpfeOL++AeRPWVQC2uvTzj+tLFwPIJcL2kI/2a1GV/cH0RLu9yKRoE8c+4QeCmz5XJQ2ObM16Ec qgib1Q3pi4oYrJu2KHpOhl8fvL+8ePr3/EbkCEXOnXgslGwy+EpJ7syZutLqWe3nzuxnhLJ+F59 kiNJ01uANmk1XEvn7Yr+RQX8OtGXlmsI0mysGaICMHI483cjr7WqroSDNz9khoBiz7Ju19irDmd Lbk1wix74QT2RqY9jxepfUrA== X-Google-Smtp-Source: AGHT+IHWBJuGJ1zWKTvkSZmeCAOVjB3t/eUUN+iIole+MPcpb/alnDn5XwGocUcD6UqDZTVGGC4/rQ== X-Received: by 2002:a17:90b:28c8:b0:340:c261:f9db with SMTP id 98e67ed59e1d1-340c261fc52mr6496768a91.10.1762134662833; Sun, 02 Nov 2025 17:51:02 -0800 (PST) Received: from archie.me ([210.87.74.117]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34050bb62casm12814486a91.20.2025.11.02.17.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Nov 2025 17:51:01 -0800 (PST) Received: by archie.me (Postfix, from userid 1000) id EAFA841C0600; Mon, 03 Nov 2025 08:50:58 +0700 (WIB) From: Bagas Sanjaya To: Linux Kernel Mailing List , Linux Documentation , Linux Networking Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Steffen Klassert , Herbert Xu , Bagas Sanjaya , Randy Dunlap Subject: [PATCH net-next v3 2/9] Documentation: xfrm_device: Use numbered list for offloading steps Date: Mon, 3 Nov 2025 08:50:23 +0700 Message-ID: <20251103015029.17018-4-bagasdotme@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251103015029.17018-2-bagasdotme@gmail.com> References: <20251103015029.17018-2-bagasdotme@gmail.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1791; i=bagasdotme@gmail.com; h=from:subject; bh=jBrlYcqe70CRFPI8eWpEHN0i3WJ0kusKzZ2MB0TsxBA=; b=owGbwMvMwCX2bWenZ2ig32LG02pJDJkcnBU7cwU/MkvfbFgUJXjzo3c9u3iYQnvP7Lbu7+sy6 3SSZu7tKGVhEONikBVTZJmUyNd0epeRyIX2tY4wc1iZQIYwcHEKwEQs5zD8s+w5vX7N+n0z6/fH 23+TsmbK4eR6vS/R4j0bb8eClHkfLjIytAsX1P7izXa47e4tJ68ZsqNYiiM4+EPJ5Gdrrzrq5K9 iAgA= X-Developer-Key: i=bagasdotme@gmail.com; a=openpgp; fpr=701B806FDCA5D3A58FFB8F7D7C276C64A5E44A1D Content-Transfer-Encoding: 8bit Format xfrm offloading steps as numbered list. Reviewed-by: Randy Dunlap Tested-by: Randy Dunlap Signed-off-by: Bagas Sanjaya --- Documentation/networking/xfrm_device.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/networking/xfrm_device.rst b/Documentation/networking/xfrm_device.rst index 7a13075b5bf06a..86db3f42552dd0 100644 --- a/Documentation/networking/xfrm_device.rst +++ b/Documentation/networking/xfrm_device.rst @@ -153,26 +153,26 @@ the packet's skb. At this point the data should be decrypted but the IPsec headers are still in the packet data; they are removed later up the stack in xfrm_input(). - find and hold the SA that was used to the Rx skb:: +1. Find and hold the SA that was used to the Rx skb:: - get spi, protocol, and destination IP from packet headers + /* get spi, protocol, and destination IP from packet headers */ xs = find xs from (spi, protocol, dest_IP) xfrm_state_hold(xs); - store the state information into the skb:: +2. Store the state information into the skb:: sp = secpath_set(skb); if (!sp) return; sp->xvec[sp->len++] = xs; sp->olen++; - indicate the success and/or error status of the offload:: +3. Indicate the success and/or error status of the offload:: xo = xfrm_offload(skb); xo->flags = CRYPTO_DONE; xo->status = crypto_status; - hand the packet to napi_gro_receive() as usual +4. Hand the packet to napi_gro_receive() as usual. In ESN mode, xdo_dev_state_advance_esn() is called from xfrm_replay_advance_esn() for RX, and xfrm_replay_overflow_offload_esn for TX. -- An old man doll... just what I always wanted! - Clara