aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-01-14 02:14:25 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-14 02:14:25 -0500
commitaef2b45fe459428d1861a74b08f3f57e87411f56 (patch)
treec2a4438c1b65afd6f805efe274817b9f04270dae /Documentation/networking
parent2afe02eed1ac565e5ba90254706e67f670ae41a2 (diff)
parent6bae919003602729d6f5920315bf71ca78bd9e48 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
Conflicts: net/xfrm/xfrm_policy.c Steffen Klassert says: ==================== This pull request has a merge conflict between commits be7928d20bab ("net: xfrm: xfrm_policy: fix inline not at beginning of declaration") and da7c224b1baa ("net: xfrm: xfrm_policy: silence compiler warning") from the net-next tree and commit 2f3ea9a95c58 ("xfrm: checkpatch erros with inline keyword position") from the ipsec-next tree. The version from net-next can be used, like it is done in linux-next. 1) Checkpatch cleanups, from Weilong Chen. 2) Fix lockdep complaints when pktgen is used with IPsec, from Fan Du. 3) Update pktgen to allow any combination of IPsec transport/tunnel mode and AH/ESP/IPcomp type, from Fan Du. 4) Make pktgen_dst_metrics static, Fengguang Wu. 5) Compile fix for pktgen when CONFIG_XFRM is not set, from Fan Du. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-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