src/dpdk/lib/librte_security/rte_security.h
static inline int
rte_security_attach_session(struct rte_crypto_op *op,
			    struct rte_security_session *sess)
{
	if (unlikely(op->type != RTE_CRYPTO_OP_TYPE_SYMMETRIC))
		return -EINVAL;

	op->sess_type =  RTE_CRYPTO_OP_SECURITY_SESSION;

	return __rte_security_attach_session(op->sym, sess);
}
/**
 * Attach a session to a crypto operation.
 * This API is needed only in case of RTE_SECURITY_SESS_CRYPTO_PROTO_OFFLOAD
 * For other rte_security_session_action_type, ol_flags in rte_mbuf may be
 * defined to perform security operations.
 *
 * @param	op	crypto operation
 * @param	sess	security session
 */
Attach a session to a crypto operation.
This API is needed only in case of RTE_SECURITY_SESS_CRYPTO_PROTO_OFFLOAD
For other rte_security_session_action_type, ol_flags in rte_mbuf may be
defined to perform security operations.

@param       op      crypto operation
@param       sess    security session
Attach a session to a crypto operation . This API is needed only in case of RTE_SECURITY_SESS_CRYPTO_PROTO_OFFLOAD For other rte_security_session_action_type ol_flags in rte_mbuf may be defined to perform security operations . @param op crypto operation @param sess security session
static inline int
rte_security_attach_session(struct rte_crypto_op *op,
			    struct rte_security_session *sess)
{
	if (unlikely(op->type != RTE_CRYPTO_OP_TYPE_SYMMETRIC))
		return -EINVAL;
	op->sess_type =  RTE_CRYPTO_OP_SECURITY_SESSION;
	return __rte_security_attach_session(op->sym, sess);
}
static inline int rte_security_attach_session ( struct rte_crypto_op * op , struct rte_security_session * sess ) { if ( unlikely ( op -> type != RTE_CRYPTO_OP_TYPE_SYMMETRIC ) ) return - EINVAL ; op -> sess_type = RTE_CRYPTO_OP_SECURITY_SESSION ; return __rte_security_attach_session ( op -> sym , sess ) ; }
Attach a session to a crypto operation.
Attach a session to a crypto operation .