From: Radu Nicolau Date: Thu, 18 Jan 2018 15:41:42 +0000 (+0000) Subject: net/ixgbe: get security session size X-Git-Tag: spdx-start~97 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d3ec528ffcaad53c5fe457b1b627cb8c52792024;p=dpdk.git net/ixgbe: get security session size Signed-off-by: Radu Nicolau --- diff --git a/drivers/net/ixgbe/ixgbe_ipsec.c b/drivers/net/ixgbe/ixgbe_ipsec.c index 85305c60aa..6619c5658e 100644 --- a/drivers/net/ixgbe/ixgbe_ipsec.c +++ b/drivers/net/ixgbe/ixgbe_ipsec.c @@ -402,6 +402,12 @@ ixgbe_crypto_create_session(void *device, return 0; } +static unsigned int +ixgbe_crypto_session_get_size(__rte_unused void *device) +{ + return sizeof(struct ixgbe_crypto_session); +} + static int ixgbe_crypto_remove_session(void *device, struct rte_security_session *session) @@ -674,6 +680,7 @@ ixgbe_crypto_add_ingress_sa_from_flow(const void *sess, static struct rte_security_ops ixgbe_security_ops = { .session_create = ixgbe_crypto_create_session, .session_update = NULL, + .session_get_size = ixgbe_crypto_session_get_size, .session_stats_get = NULL, .session_destroy = ixgbe_crypto_remove_session, .set_pkt_metadata = ixgbe_crypto_update_mb,