Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix pool usage for security session

2019-04-23 Thread Akhil Goyal
> > > Looks good to me , but seems incomplete. > I think we also need to: > static int32_t > cryptodevs_init(void) > { >... > > /* create session pools for eth devices that implement security */ > RTE_ETH_FOREACH_DEV(port_id) { > if ((enabled_port_mask & (1 <<

Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix pool usage for security session

2019-04-23 Thread Ananyev, Konstantin
Hi Akhil, > Currently, two separate mempools are being used for creating crypto > sessions and its private data. > crypto sessions are created and initialized separately, so a separate > mempool is passed to each API, but in case of security sessions, where > only one API create and initialize the

[dpdk-dev] [PATCH] examples/ipsec-secgw: fix pool usage for security session

2019-04-22 Thread Akhil Goyal
Currently, two separate mempools are being used for creating crypto sessions and its private data. crypto sessions are created and initialized separately, so a separate mempool is passed to each API, but in case of security sessions, where only one API create and initialize the private data as well