diff options
author | Fan Du <fan.du@windriver.com> | 2014-01-02 22:18:34 -0500 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2014-01-03 01:29:12 -0500 |
commit | e5f79d111fd4827b44583dc4168957561166565a (patch) | |
tree | 5861a84d64446be736de721c5a8cf8b4368ee01a | |
parent | 8101328b798471d41504b75135788c14dc8705ee (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.txt | 15 |
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. |
178 | as this reduces cache bouncing when freeing skb's. | 180 | as this reduces cache bouncing when freeing skb's. |
179 | 181 | ||
182 | Enable IPsec | ||
183 | ============ | ||
184 | Default IPsec transformation with ESP encapsulation plus Transport mode | ||
185 | could be enabled by simply setting: | ||
186 | |||
187 | pgset "flag IPSEC" | ||
188 | pgset "flows 1" | ||
189 | |||
190 | To avoid breaking existing testbed scripts for using AH type and tunnel mode, | ||
191 | user could use "pgset spi SPI_VALUE" to specify which formal of transformation | ||
192 | to employ. | ||
193 | |||
180 | 194 | ||
181 | Current commands and configuration options | 195 | Current 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 | ||
229 | dst_min | 244 | dst_min |
230 | dst_max | 245 | dst_max |