Removing redundant code in cn10k lookaside IPsec.
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
if (conf->action_type != RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL)
return -EINVAL;
- if (rte_security_dynfield_register() < 0)
- return -ENOTSUP;
-
if (rte_mempool_get(mempool, (void **)&priv)) {
plt_err("Could not allocate security session private data");
return -ENOMEM;
set_sec_session_private_data(sess, priv);
- priv->userdata = conf->userdata;
-
if (conf->protocol != RTE_SECURITY_PROTOCOL_IPSEC) {
ret = -ENOTSUP;
goto mempool_put;
struct cn10k_sec_session {
struct cn10k_ipsec_sa sa;
- void *userdata;
- /**< Userdata registered by the application */
} __rte_cache_aligned;
void cn10k_sec_ops_override(void);
.options = { 0 }
},
.crypto_capabilities = NULL,
- .ol_flags = RTE_SECURITY_TX_OLOAD_NEED_MDATA
},
{ /* IPsec Lookaside Protocol ESP Tunnel Egress */
.action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL,
.options = { 0 }
},
.crypto_capabilities = NULL,
- .ol_flags = RTE_SECURITY_TX_OLOAD_NEED_MDATA
},
{
.action = RTE_SECURITY_ACTION_TYPE_NONE