Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (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 C01A7317701 for ; Tue, 18 Nov 2025 09:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.96.220.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763457985; cv=none; b=B0uzvZFZITBFK7Mn883bRHedQhBFEA3SGLP4+JZB+yR1WNf3uRxIFwh8ilfe8EvkumeCgBgN2MV98XkgUqZVziunZ2+8aokXX1L+MY1AEO68y5l+1bQE87ikKOafKvGKxv5io2jgFZSvhBX4IAqqGhFdTTrIRKhw86qVztoy9MU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763457985; c=relaxed/simple; bh=MYMc4iyaxFjVj9AfFQKF5hadUyx03tWdLPnv7oJdYGc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kaicAzKRHvexsMvnD2INpWumJe8hSL19xEtkDcsjAuPT+L+6MXOgoY+9OGeFXxbFQbfzoULPzuXhWtXj0kaLU5Trg8zccx1QuS4vmhLmA9x9gsPAM9Lbq6QONt1Wws67zEfxXJ/Zx4UMx554BdaYTOfR6p6mx1T1p6qJ4kiVVJs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b=cm6DWFtZ; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b="cm6DWFtZ" Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id 580C8207FC; Tue, 18 Nov 2025 10:26:21 +0100 (CET) X-Virus-Scanned: by secunet Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xeYOdAW15RZC; Tue, 18 Nov 2025 10:26:20 +0100 (CET) Received: from EXCH-01.secunet.de (unknown [10.32.0.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id B49DF20890; Tue, 18 Nov 2025 10:26:20 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com B49DF20890 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1763457980; bh=+RURHZkJw+O3F9TIGaHJmzSawtt0eUYUQkUsPKbzuTU=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=cm6DWFtZl4M9CzbdIkf0XboP+qf+vACBeRaq8xGH4/gC5v7pvwjQZW//Om+LlAJ8w XzrauuD4MUgqK4lJbK7QvGwOW+S6PuaM5mkwcV2ntyoaV/o93E73VuyNW9n8QvnXlE X8rdqVJ5WZCY62Nikvf1VulRCWBmpTKoFldKGo1Uc90PwaJEoSb8VNfdbt2NVyF68n u7x0F4RFNC2PeN7LFu4hxIcsx+ikF590FBjjJT8oUrjeaTkanjHvFjpRgY4twwisZk R717yplONco8PfvkiSzSLEumtPCnLd8B3o7bLT++b0OyOoyVnHhmbLe9TsEmDzae5P gG2SoX71KYtvw== Received: from secunet.com (10.182.7.193) by EXCH-01.secunet.de (10.32.0.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.17; Tue, 18 Nov 2025 10:26:20 +0100 Received: (nullmailer pid 2223969 invoked by uid 1000); Tue, 18 Nov 2025 09:26:12 -0000 From: Steffen Klassert To: David Miller , Jakub Kicinski CC: Herbert Xu , Steffen Klassert , Subject: [PATCH 05/12] Documentation: xfrm_device: Use numbered list for offloading steps Date: Tue, 18 Nov 2025 10:25:42 +0100 Message-ID: <20251118092610.2223552-6-steffen.klassert@secunet.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251118092610.2223552-1-steffen.klassert@secunet.com> References: <20251118092610.2223552-1-steffen.klassert@secunet.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: cas-essen-02.secunet.de (10.53.40.202) To EXCH-01.secunet.de (10.32.0.171) From: Bagas Sanjaya Format xfrm offloading steps as numbered list. Reviewed-by: Randy Dunlap Tested-by: Randy Dunlap Signed-off-by: Bagas Sanjaya Signed-off-by: Steffen Klassert --- 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 7a13075b5bf0..86db3f42552d 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. -- 2.43.0