summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/ipsec
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-12 00:26:45 +0200
committerDamjan Marion <dmarion@me.com>2018-08-13 14:32:03 +0000
commit3bf6c2bfe59be62169a1245340722481b0b53870 (patch)
treeed84f92827078d29273ad5d06ff04c80a193f18b /src/plugins/dpdk/ipsec
parent060c3a7e5a2d23189a8c6348e767cd2018a58dd6 (diff)
dpdk: support for DPDK 18.08
Change-Id: If1b93341c222160b9a08f127620c024620e55c37 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/ipsec')
-rw-r--r--src/plugins/dpdk/ipsec/ipsec.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/dpdk/ipsec/ipsec.c b/src/plugins/dpdk/ipsec/ipsec.c
index b2d8611cc9c..a7f501f9d9d 100644
--- a/src/plugins/dpdk/ipsec/ipsec.c
+++ b/src/plugins/dpdk/ipsec/ipsec.c
@@ -878,11 +878,7 @@ crypto_create_session_h_pool (vlib_main_t * vm, u8 numa)
pool_name = format (0, "session_h_pool_numa%u%c", numa, 0);
-#if RTE_VERSION < RTE_VERSION_NUM(18, 5, 0, 0)
- elt_size = rte_cryptodev_get_header_session_size ();
-#else
elt_size = rte_cryptodev_sym_get_header_session_size ();
-#endif
error =
dpdk_pool_create (vm, pool_name, elt_size, DPDK_CRYPTO_NB_SESS_OBJS,
@@ -922,11 +918,7 @@ crypto_create_session_drv_pool (vlib_main_t * vm, crypto_dev_t * dev)
pool_name = format (0, "session_drv%u_pool_numa%u%c", dev->drv_id, numa, 0);
-#if RTE_VERSION < RTE_VERSION_NUM(18, 5, 0, 0)
- elt_size = rte_cryptodev_get_private_session_size (dev->id);
-#else
elt_size = rte_cryptodev_sym_get_private_session_size (dev->id);
-#endif
error =
dpdk_pool_create (vm, pool_name, elt_size, DPDK_CRYPTO_NB_SESS_OBJS,