Hi Akhil, Please see inline.
Thanks, Anoob > -----Original Message----- > From: Akhil Goyal <akhil.go...@nxp.com> > Sent: Wednesday, December 11, 2019 5:04 PM > To: Anoob Joseph <ano...@marvell.com>; Radu Nicolau > <radu.nico...@intel.com>; Thomas Monjalon <tho...@monjalon.net> > Cc: Jerin Jacob Kollanukkaran <jer...@marvell.com>; Narayana Prasad Raju > Athreya <pathr...@marvell.com>; Ankur Dwivedi <adwiv...@marvell.com>; > Archana Muniganti <march...@marvell.com>; Tejasree Kondoj > <ktejas...@marvell.com>; Vamsi Krishna Attunuru <vattun...@marvell.com>; > Lukas Bartosik <lbarto...@marvell.com>; Konstantin Ananyev > <konstantin.anan...@intel.com>; dev@dpdk.org > Subject: [EXT] RE: [PATCH 04/14] examples/ipsec-secgw: add Rx adapter > support > > External Email > > ---------------------------------------------------------------------- > Hi Anoob, > > I have just started looking into this patchset. Will be doing a detailed > review > soon. > But an initial comment. > Why do you need 1-1 mapping between event queue and ethdev queue. > > All eth and crypto queues will be attached to eventdev. And there may be > single > event queue Or multiple but not necessarily equal to eth queues. [Anoob] You are right. We could have one single event queue which could handle all traffic. But the idea of more event queues is to better isolate independent traffic flows. If all traffic is forwarded to single event queue, it could lead to artificial dependency between otherwise independent flows and underutilization of resources. But having a single event queue is also a valid case, and we shouldn't have that case failing. So I'll have an else case for the below check and would adjust the code to work with single event queue. > > + > > + /* Make sure there is enough event queues for 1:1 mapping */ > > + if (nb_eth_dev > eventdev_config->nb_eventqueue) { > > + EH_LOG_ERR("Not enough event queues for 1:1 mapping " > > + "[eth devs: %d, event queues: %d]\n", > > + nb_eth_dev, eventdev_config->nb_eventqueue); > > + return -EINVAL; > > + } > > +