aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFan Du <fan.du@windriver.com>2014-01-02 22:18:34 -0500
committerSteffen Klassert <steffen.klassert@secunet.com>2014-01-03 01:29:12 -0500
commite5f79d111fd4827b44583dc4168957561166565a (patch)
tree5861a84d64446be736de721c5a8cf8b4368ee01a
parent8101328b798471d41504b75135788c14dc8705ee (diff)
{pktgen, xfrm} Document IPsec usage in pktgen.txt
Update pktgen.txt for reference when using IPsec. Signed-off-by: Fan Du <fan.du@windriver.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-rw-r--r--Documentation/networking/pktgen.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/networking/pktgen.txt b/Documentation/networking/pktgen.txt
index 75e4fd708ccb..5a61a240a652 100644
--- a/Documentation/networking/pktgen.txt
+++ b/Documentation/networking/pktgen.txt
@@ -108,7 +108,9 @@ Examples:
108 MPLS_RND, VID_RND, SVID_RND 108 MPLS_RND, VID_RND, SVID_RND
109 QUEUE_MAP_RND # queue map random 109 QUEUE_MAP_RND # queue map random
110 QUEUE_MAP_CPU # queue map mirrors smp_processor_id() 110 QUEUE_MAP_CPU # queue map mirrors smp_processor_id()
111 IPSEC # Make IPsec encapsulation for packet
111 112
113 pgset spi SPI_VALUE Set specific SA used to transform packet.
112 114
113 pgset "udp_src_min 9" set UDP source port min, If < udp_src_max, then 115 pgset "udp_src_min 9" set UDP source port min, If < udp_src_max, then
114 cycle through the port range. 116 cycle through the port range.
@@ -177,6 +179,18 @@ Note when adding devices to a specific CPU there good idea to also assign
177/proc/irq/XX/smp_affinity so the TX-interrupts gets bound to the same CPU. 179/proc/irq/XX/smp_affinity so the TX-interrupts gets bound to the same CPU.
178as this reduces cache bouncing when freeing skb's. 180as this reduces cache bouncing when freeing skb's.
179 181
182Enable IPsec
183============
184Default IPsec transformation with ESP encapsulation plus Transport mode
185could be enabled by simply setting:
186
187pgset "flag IPSEC"
188pgset "flows 1"
189
190To avoid breaking existing testbed scripts for using AH type and tunnel mode,
191user could use "pgset spi SPI_VALUE" to specify which formal of transformation
192to employ.
193
180 194
181Current commands and configuration options 195Current commands and configuration options
182========================================== 196==========================================
@@ -225,6 +239,7 @@ flag
225 UDPDST_RND 239 UDPDST_RND
226 MACSRC_RND 240 MACSRC_RND
227 MACDST_RND 241 MACDST_RND
242 IPSEC
228 243
229dst_min 244dst_min
230dst_max 245dst_max