[dpdk-dev] [v2, 2/3] cryptodev: support session private data setting
Verma, Shally
Shally.Verma at cavium.com
Fri Apr 20 14:23:17 CEST 2018
//snip
>> >+int __rte_experimental
>> >+rte_cryptodev_sym_session_set_private_data(
>> >+ struct rte_cryptodev_sym_session
>> *sess,
>> >+ void *data,
>> >+ uint16_t size)
>> >+{
>> >+ uint16_t off_set = sizeof(void *) * nb_drivers;
>> >+ uint8_t *private_data_present = (uint8_t *)sess + off_set;
>>
>> [Shally] I was going through this in context of crypto event adapter and realize
>> probably it is safer to set priv_data_size after (sess == NULL) check.
>> Same is applicable in get_private_data().
>[Abhinandan] I guess you are pointing *private_data_present* which is calculated prior, it will not be used if the sess is NULL.
>
Oh. Ya . sorry I missed that.
//snip
Thanks
Shally
More information about the dev
mailing list