Commit e5f79d11 authored by Fan Du's avatar Fan Du Committed by Steffen Klassert

{pktgen, xfrm} Document IPsec usage in pktgen.txt

Update pktgen.txt for reference when using IPsec.
Signed-off-by: default avatarFan Du <fan.du@windriver.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 8101328b
...@@ -108,7 +108,9 @@ Examples: ...@@ -108,7 +108,9 @@ Examples:
MPLS_RND, VID_RND, SVID_RND MPLS_RND, VID_RND, SVID_RND
QUEUE_MAP_RND # queue map random QUEUE_MAP_RND # queue map random
QUEUE_MAP_CPU # queue map mirrors smp_processor_id() QUEUE_MAP_CPU # queue map mirrors smp_processor_id()
IPSEC # Make IPsec encapsulation for packet
pgset spi SPI_VALUE Set specific SA used to transform packet.
pgset "udp_src_min 9" set UDP source port min, If < udp_src_max, then pgset "udp_src_min 9" set UDP source port min, If < udp_src_max, then
cycle through the port range. cycle through the port range.
...@@ -177,6 +179,18 @@ Note when adding devices to a specific CPU there good idea to also assign ...@@ -177,6 +179,18 @@ Note when adding devices to a specific CPU there good idea to also assign
/proc/irq/XX/smp_affinity so the TX-interrupts gets bound to the same CPU. /proc/irq/XX/smp_affinity so the TX-interrupts gets bound to the same CPU.
as this reduces cache bouncing when freeing skb's. as this reduces cache bouncing when freeing skb's.
Enable IPsec
============
Default IPsec transformation with ESP encapsulation plus Transport mode
could be enabled by simply setting:
pgset "flag IPSEC"
pgset "flows 1"
To avoid breaking existing testbed scripts for using AH type and tunnel mode,
user could use "pgset spi SPI_VALUE" to specify which formal of transformation
to employ.
Current commands and configuration options Current commands and configuration options
========================================== ==========================================
...@@ -225,6 +239,7 @@ flag ...@@ -225,6 +239,7 @@ flag
UDPDST_RND UDPDST_RND
MACSRC_RND MACSRC_RND
MACDST_RND MACDST_RND
IPSEC
dst_min dst_min
dst_max dst_max
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment