Get userdata associated with the security session which processed the packet. This userdata would be registered while creating the session, and application can use this to identify the SA etc. Device-specific metadata in the mbuf would be used for this.

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.