From nobody Tue Dec 16 02:00:37 2025 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 9723F32E6B9 for ; Wed, 29 Oct 2025 08:26:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761726394; cv=none; b=KUkam4BB5w1GR9cScY1ZP9GIHQ5ava0A7IW0Iv+HL8Oou541bneqG/rNh4/rbNw90/5P9gBBMGs7wxBG4D2goD6bzqziygE74VRjwR35D3J+1sSdUnUswffmLlSl28SqbsvSqTkeT8XMCNIL+m3eXy4F5ztua1OK96PO5tzIn+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761726394; c=relaxed/simple; bh=sF2dC0yEoZfqsMqlw23WcrsBb8sQVqBQWtlJoeU/pAs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MzktLAUd4xfFx+OIg04Geoxzsa50y5idUXMcxQOTOsUFqsFkh89rAgWoNZyjG2s02Ze+8m1PI2IO4kuuFdV/wo84R/DqIkk7dvNm//6jsa0/P2QoYdAQuzcplmqOEwb2uA2JCGTdoqIcJTMYM4VRfDiy1QwMFQRSCRN3t9wPFQI= 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=AhOUqMRB; arc=none smtp.client-ip=209.85.210.170 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="AhOUqMRB" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7a26dab3a97so4343608b3a.0 for ; Wed, 29 Oct 2025 01:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761726392; x=1762331192; 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=yn0tHntcIm9TXsQwef8sNUxYfqf9R0uILDPExZJh0QE=; b=AhOUqMRBS0xyASLrnCRYf2ZPSq2eR/Raby/ourfh6kYxEsV7ujJHtGrmXM+ULGpxqt rT3kuYxau9VH8bVDKI2NqtsgnebKxoRrMdVBgGd2DCPBHlLeIXWRg64u3Jehw28MOyOn KfhTzGlXHSGMwcaHkaIUhJ7j/v766QFjOdjBRAqcelELGsVsfRb1KCf/jCGwokFoHMSM FwlBEvAuqYdBjkKVgmIYPwYArQmPKeoC9drjm9nLGR3LFBmTw+1d1f7UKtlnO+0EDCWi Yyz58rdzOHR5blTztCaZpw4otDtfDWzegKjf8tnMlmb3hJXHh0RARiXpkKZpt7rCjSW5 5nmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761726392; x=1762331192; 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=yn0tHntcIm9TXsQwef8sNUxYfqf9R0uILDPExZJh0QE=; b=C+rAPNgK9KhzN1AU6zMxLwD20VnUDOxudvrNj/ljt9iHjOzgKhVu2VzNkklo1YK3i8 XlxyZXSpemVYF7EtP3KUsKT1oDXY/DvJV4SCmAD+YNkeoNikc389CNaIYeFKhk0BwllS HD3KjY+UMnt0b34+IJGERJdodZFAysesEnLY5i5CZY51jVm+91LNmOXxQmKr/dGYMvIF nqSaylAYVa2f5IKXAl7JyKtW7+dCtebLkLPDCJr7SmT5J4o+B3ESRVPuhjZjYt3kT5+Y 7adG1i70TFQhqLAHf51BG8+EA/HSoRm1NSD63JO0SCLNPnKFW9Acsx1FEtSjM30dO0xy A47g== X-Gm-Message-State: AOJu0Yy5NGXqyFd0Gdt6ACekRTPwjVNVUyDzMpYcIl+zK4iVtMhyUkUt olc8HC34GfVPNF6uM/5pb6EHYv1XYGVwzXqyVwh8AngIo6y7cCeRpub3 X-Gm-Gg: ASbGncuqmriGu5Xnhb07twe6yt67YoD9aWt2+gSMOqnFLoeZzZBoAJFv6WrxcSaBThk GWKgFJkvECkpBrrtAQyTppPrN0WS6dMwPafmN9VGCP+J1xQ9hShRCOLVjU9yv/uyfUzrWWZI2XV 9gZa0uVpGzl2+isiLCiRtwZLh+RjLDjHttarJVhmQjGBh6NuZyoTtqQ5VWoblwqZuBThpOZfit5 iSIqEj0F9yvMpIlSGP9tFmFmnlusUwc9SfcEUiptbQ9Wrwu1+SGNyzr+4aX8yBoSxYCwiNJWGfx ySfY1kP+VZxB9fyl16Qbm8c9PTtU5xdP4E8hgr3pG3m1g6/NBC+zmbrWeUcucl5pj1lcYPPf+hG Okh9Mx+ADl3DNIsc4OBGsOSlw1AaP2VlcCRCbbkMTm5eBKnWOnE2uqEYfP3RG7t5hT5kJmZPwRG ZjjWNNxwzUPGs= X-Google-Smtp-Source: AGHT+IGaPtjJNURBFreVhHociDTVO8Qt3Z5yfA7jdZER+9HScrmDJ5QCPbGQTLP2IHCC1IeBVmLIIA== X-Received: by 2002:a05:6a20:4328:b0:263:4717:53d with SMTP id adf61e73a8af0-3465381698fmr2495369637.48.1761726391775; Wed, 29 Oct 2025 01:26:31 -0700 (PDT) Received: from archie.me ([210.87.74.117]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b7127bf6accsm13075614a12.14.2025.10.29.01.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Oct 2025 01:26:29 -0700 (PDT) Received: by archie.me (Postfix, from userid 1000) id 4EE824201B81; Wed, 29 Oct 2025 15:26:19 +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 Subject: [PATCH net-next 2/6] Documentation: xfrm_device: Use numbered list for offloading steps Date: Wed, 29 Oct 2025 15:26:10 +0700 Message-ID: <20251029082615.39518-3-bagasdotme@gmail.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251029082615.39518-1-bagasdotme@gmail.com> References: <20251029082615.39518-1-bagasdotme@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1691; i=bagasdotme@gmail.com; h=from:subject; bh=sF2dC0yEoZfqsMqlw23WcrsBb8sQVqBQWtlJoeU/pAs=; b=owGbwMvMwCX2bWenZ2ig32LG02pJDJmM5zUM9v13EGe3tvn6LGGFpkSJcNtu3neHdaPPH9v+T /f7rjD5jlIWBjEuBlkxRZZJiXxNp3cZiVxoX+sIM4eVCWQIAxenAExkazYjw4Ir2UHbpfU4bh8I +d3Xec7o4ZqlBavYLjF6bl0TOSsmKpaRYWKL+KoWH+3XKvIPVz+7vPilZoDbHRmPd2W/N7U5emW u5AUA X-Developer-Key: i=bagasdotme@gmail.com; a=openpgp; fpr=701B806FDCA5D3A58FFB8F7D7C276C64A5E44A1D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Format xfrm offloading steps as numbered list. 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/netwo= rking/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 d= ecrypted but the IPsec headers are still in the packet data; they are removed later up the stack in xfrm_input(). =20 - 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:: =20 - get spi, protocol, and destination IP from packet headers + /* get spi, protocol, and destination IP from packet headers */ xs =3D find xs from (spi, protocol, dest_IP) xfrm_state_hold(xs); =20 - store the state information into the skb:: +2. Store the state information into the skb:: =20 sp =3D secpath_set(skb); if (!sp) return; sp->xvec[sp->len++] =3D xs; sp->olen++; =20 - indicate the success and/or error status of the offload:: +3. Indicate the success and/or error status of the offload:: =20 xo =3D xfrm_offload(skb); xo->flags =3D CRYPTO_DONE; xo->status =3D crypto_status; =20 - hand the packet to napi_gro_receive() as usual +4. Hand the packet to napi_gro_receive() as usual. =20 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. --=20 An old man doll... just what I always wanted! - Clara