> +#define CRYPTO_SESS_OPAQUE_DATA_OFF 0 CRYPTO_SESS_OPAQUE_DATA_OFF cannot be 0 as you have added a driver_id at start of struct.
> +/** > + * Get opaque data from session handle > + */ > +static inline uint64_t > +rte_cryptodev_sym_session_opaque_data_get(void *sess) > +{ > + return *((uint64_t *)sess - CRYPTO_SESS_OPAQUE_DATA_OFF); > +} > + > +/** > + * Set opaque data in session handle > + */ > +static inline void > +rte_cryptodev_sym_session_opaque_data_set(void *sess, uint64_t opaque) > +{ > + uint64_t *data; > + data = (((uint64_t *)sess) - CRYPTO_SESS_OPAQUE_DATA_OFF); > + *data = opaque; > +}