]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Documentation: xfrm_device: Use numbered list for offloading steps
authorBagas Sanjaya <bagasdotme@gmail.com>
Mon, 3 Nov 2025 01:50:23 +0000 (08:50 +0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 12 Nov 2025 07:28:09 +0000 (08:28 +0100)
Format xfrm offloading steps as numbered list.

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Documentation/networking/xfrm_device.rst

index 7a13075b5bf06ab3026d8a6a51493ad1197fa169..86db3f42552dd098209d02769c49f3215439701a 100644 (file)
@@ -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.