#define OTX2_SEC_AES_GCM_ROUNDUP_BYTE_LEN 4
#define OTX2_SEC_AES_CBC_ROUNDUP_BYTE_LEN 16
-union otx2_sec_session_ipsec {
- struct otx2_sec_session_ipsec_ip ip;
- struct otx2_sec_session_ipsec_lp lp;
+struct otx2_sec_session_ipsec {
+ union {
+ struct otx2_sec_session_ipsec_ip ip;
+ struct otx2_sec_session_ipsec_lp lp;
+ };
enum rte_security_ipsec_sa_direction dir;
};
struct otx2_sec_session {
- union otx2_sec_session_ipsec ipsec;
+ struct otx2_sec_session_ipsec ipsec;
void *userdata;
/**< Userdata registered by the application */
} __rte_cache_aligned;