examples/ipsec-secgw: set default to IPsec library mode
PATCH 1/2 examples/ipsec-secgw: set default to IPsec library mode
Set the default code path to librte_ipsec mode.
Add parameter 0 | 1 to -l option
Check for conflicting options, -w -a -e and reassembly options are not supported in legacy mode.
Show fragment table size.
Update print_usage.
Update the ipsec-secgw guide.
Update the release notes.
Signed-off-by Bernard Iremonger <[email protected]>
--- doc/guides/rel_notes/release_19_11.rst | 8 ++++++ doc/guides/sample_app_ug/ipsec_secgw.rst | 6 +++-- examples/ipsec-secgw/ipsec-secgw.c | 44 ++++++++++++++++++++------------ 3 files changed, 40 insertions(+), 18 deletions(-)
doc/guides/rel_notes/release_19_11.rst +8 -0
@@ -56,6 +56,14 @@ New Features Also, make sure to start the actual text at the margin. ========================================================= +* **Updated the IPsec Security Gateway application.** + + The ``librte_ipsec`` code path is now the default code path in + ``ipsec-secgw`` + + * The ``-l`` command line option has been extended to take a 0 | 1 argument. + 0 enables the code path that uses legacy code. + 1 enables the code path that uses ``librte_ipsec``. Removed Items -------------
doc/guides/sample_app_ug/ipsec_secgw.rst +4 -2
@@ -92,7 +92,7 @@ The application has a number of command line options:: ./build/ipsec-secgw [EAL options] -- -p PORTMASK -P -u PORTMASK -j FRAMESIZE - -l -w REPLAY_WINOW_SIZE -e -a + -l 0 -w REPLAY_WINOW_SIZE -e -a --config (port,queue,lcore)[,(port,queue,lcore] --single-sa SAIDX --rxoffload MASK
@@ -120,7 +120,9 @@ Where: Minimum value: RTE_MBUF_DEFAULT_BUF_SIZE (2176) Maximum value: UINT16_MAX (65535). -* ``-l``: enables code-path that uses librte_ipsec. +* ``-l 0 | 1``: Default is ``librte_ipsec`` code path. + 0 enables the code path that uses legacy code. + 1 enables the code path that uses ``librte_ipsec``. * ``-w REPLAY_WINOW_SIZE``: specifies the IPsec sequence number replay window size for each Security Association (available only with librte_ipsec
examples/ipsec-secgw/ipsec-secgw.c +28 -16
94 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/2 examples/ipsec-secgw: add -l 0 parameter to old scripts
enable legacy mode in *_old scripts
Signed-off-by Bernard Iremonger <[email protected]>
--- examples/ipsec-secgw/test/trs_3descbc_sha1_old_defs.sh | 2 +- examples/ipsec-secgw/test/trs_aescbc_sha1_old_defs.sh | 2 +- examples/ipsec-secgw/test/trs_aesctr_sha1_old_defs.sh | 2 +- examples/ipsec-secgw/test/trs_aesgcm_inline_crypto_old_defs.sh | 2 +- examples/ipsec-secgw/test/trs_aesgcm_old_defs.sh | 2 +- examples/ipsec-secgw/test/tun_3descbc_sha1_old_defs.sh | 2 +- examples/ipsec-secgw/test/tun_aescbc_sha1_old_defs.sh | 2 +- examples/ipsec-secgw/test/tun_aesctr_sha1_old_defs.sh | 2 +- examples/ipsec-secgw/test/tun_aesgcm_inline_crypto_old_defs.sh | 2 +- examples/ipsec-secgw/test/tun_aesgcm_old_defs.sh | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-)
examples/ipsec-secgw/test/trs_3descbc_sha1_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/trs_3descbc_sha1_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/trs_aescbc_sha1_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/trs_aescbc_sha1_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/trs_aesctr_sha1_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/trs_aesctr_sha1_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/trs_aesgcm_inline_crypto_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/trs_aesgcm_inline_crypto_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/trs_aesgcm_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/trs_aesgcm_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/tun_3descbc_sha1_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/tun_3descbc_sha1_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/tun_aescbc_sha1_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/tun_aescbc_sha1_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/tun_aesctr_sha1_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/tun_aesctr_sha1_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/tun_aesgcm_inline_crypto_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/tun_aesgcm_inline_crypto_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
examples/ipsec-secgw/test/tun_aesgcm_old_defs.sh +1 -1
@@ -2,4 +2,4 @@ . ${DIR}/tun_aesgcm_defs.sh -SGW_CMD_XPRM= +SGW_CMD_XPRM='-l 0'
Signature · 1 line
2.7.4