]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/testpmd_app_ug/testpmd_funcs.rst
app/testpmd: parse flow command line for ESP
[dpdk.git] / doc / guides / testpmd_app_ug / testpmd_funcs.rst
index 4e56e075f1ef95d20a4249c4d1e6e89b5360744c..7f4564cf105ee7904488929178af7d3b19dcfe60 100644 (file)
@@ -4778,6 +4778,20 @@ Decapsulating VxLAN::
  testpmd> flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 /
         end actions raw_decap / queue index 0 / end
 
+Sample ESP rules
+~~~~~~~~~~~~~~~~
+
+ESP rules can be created by the following commands::
+
+ testpmd> flow create 0 ingress pattern eth / ipv4 / esp spi is 1 / end actions
+        queue index 3 / end
+ testpmd> flow create 0 ingress pattern eth / ipv4 / udp / esp spi is 1 / end
+        actions queue index 3 / end
+ testpmd> flow create 0 ingress pattern eth / ipv6 / esp spi is 1 / end actions
+        queue index 3 / end
+ testpmd> flow create 0 ingress pattern eth / ipv6 / udp / esp spi is 1 / end
+        actions queue index 3 / end
+
 BPF Functions
 --------------