> -----Original Message----- > From: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru> > Sent: Tuesday, October 13, 2020 12:52 PM > To: Nipun Gupta <nipun.gu...@nxp.com>; dev@dpdk.org > Cc: tho...@monjalon.net; ferruh.yi...@intel.com; Hemant Agrawal > <hemant.agra...@nxp.com>; Sachin Saxena <sachin.sax...@nxp.com>; Rohit > Raj <rohit....@nxp.com>; jerinjac...@gmail.com; > step...@networkplumber.org; as...@nvidia.com > Subject: Re: [dpdk-dev] [PATCH 1/3 v3] ethdev: add rx offload to drop error > packets > > On 10/12/20 3:22 PM, Andrew Rybchenko wrote: > > On 10/12/20 2:30 PM, Nipun Gupta wrote: > >>> -----Original Message----- > >>> From: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru> > >>> Sent: Monday, October 12, 2020 1:32 PM > >>> To: Nipun Gupta <nipun.gu...@nxp.com>; dev@dpdk.org > >>> Cc: tho...@monjalon.net; ferruh.yi...@intel.com; > arybche...@solarflare.com; > >>> Hemant Agrawal <hemant.agra...@nxp.com>; Sachin Saxena > >>> <sachin.sax...@nxp.com>; Rohit Raj <rohit....@nxp.com>; > >>> jerinjac...@gmail.com; step...@networkplumber.org; as...@nvidia.com > >>> Subject: Re: [dpdk-dev] [PATCH 1/3 v3] ethdev: add rx offload to drop > >>> error > >>> packets > >>> > >>> On 10/9/20 4:13 PM, nipun.gu...@nxp.com wrote: > >>>> From: Nipun Gupta <nipun.gu...@nxp.com> > >>>> > >>>> This change adds a RX offload capability and configuration to > >>>> enable hardware to drop the packets in case of any error in the > >>>> packets such as L3 checksum error or L4 checksum. > >>>> > >>>> Signed-off-by: Nipun Gupta <nipun.gu...@nxp.com> > >>>> Signed-off-by: Rohit Raj <rohit....@nxp.com> > >>>> Reviewed-by: Asaf Penso <as...@nvidia.com> > > Thinking a bit more about it I agree with Thomas idea that > it should be flow API based solution in fact. > Drop is just a one of possible actions to be done with > packets with bad checksum on one or another layer. > Such packets could be redirected to a slow path > (dedicated queue or port ID (PF, VF)). > It is just a missing feature in various layer > pattern match to say if we want to proceed with packets > with only good or only bad chehcksum (or we don't care > as we do right now). Exact match for checksums is hardly > useful except UDP with zero checksum case.
I would think of it applicable to both, i.e. it could fit in config option as well as in flow (e.g. RSS we also have as part of both config and flow). Having this in flow would increase usage like redirecting as you mentioned, and having in the config will increase utility when simple config like RSS is used without flow API's.