RE: [EXT] [PATCH 3/3] cryptodev: hide sym session structure

2022-09-18 Thread Akhil Goyal
> +#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 *((ui

[PATCH 3/3] cryptodev: hide sym session structure

2022-08-29 Thread Fan Zhang
Structure rte_cryptodev_sym_session is moved to internal headers which are not visible to applications. The only field which should be used by app is opaque_data. This field can now be accessed via set/get APIs added in this patch. Subsequent changes in app and lib are made to compile the code. Si