[dpdk-dev] [PATCH 1/2] net/i40e: fix incorrect FDIR flex mask

Di, ChenxuX chenxux.di at intel.com
Thu Nov 5 09:40:23 CET 2020


Hi, jia

> -----Original Message-----
> From: Di, ChenxuX
> Sent: Wednesday, November 4, 2020 5:49 PM
> To: Guo, Jia <jia.guo at intel.com>; dev at dpdk.org
> Cc: Xing, Beilei <beilei.xing at intel.com>; Wang, Haiyue
> <haiyue.wang at intel.com>
> Subject: RE: [PATCH 1/2] net/i40e: fix incorrect FDIR flex mask
> 
> Hi, Jia
> 
> > -----Original Message-----
> > From: Guo, Jia <jia.guo at intel.com>
> > Sent: Wednesday, November 4, 2020 5:41 PM
> > To: Di, ChenxuX <chenxux.di at intel.com>; dev at dpdk.org
> > Cc: Xing, Beilei <beilei.xing at intel.com>; Wang, Haiyue
> > <haiyue.wang at intel.com>; Di, ChenxuX <chenxux.di at intel.com>;
> > stable at dpdk.org
> > Subject: RE: [PATCH 1/2] net/i40e: fix incorrect FDIR flex mask
> >
> > Hi, chenxu
> >
> > > -----Original Message-----
> > > From: Chenxu Di <chenxux.di at intel.com>
> > > Sent: Wednesday, November 4, 2020 4:30 PM
> > > To: dev at dpdk.org
> > > Cc: Xing, Beilei <beilei.xing at intel.com>; Guo, Jia
> > > <jia.guo at intel.com>; Wang, Haiyue <haiyue.wang at intel.com>; Di,
> > > ChenxuX <chenxux.di at intel.com>; stable at dpdk.org
> > > Subject: [PATCH 1/2] net/i40e: fix incorrect FDIR flex mask
> > >
> > > The register of FDIR flex mask should not be set during flow validate.
> > > It should be set when flow create.
> > >
> > > Fixes: 6ced3dd72f5f ("net/i40e: support flexible payload parsing for
> > > FDIR")
> >
> > Seems that you move the place of flexible payload parsing from flow
> > validate to create, you delete something but miss some useless
> > parameter deleting, such as " off_arr/len_arr" etc in this [PATCH 1/2]
> > or [PATCH 2/3]. Please double check if anything related remove and if
> > you want you could merge into 1 remove patch if it could be.
> >
> 
> Got it, I will double check it.
> 

I have double checked the code and I think the other code and parameter in parse function are useful and necessary.
The array  off_arr and len_arr is used to store the info of RAW if there are two or more RAW in pattern.

And I will merge into one patch in next version.


> > > Cc: stable at dpdk.org
> > >
> > > Signed-off-by: Chenxu Di <chenxux.di at intel.com>
> > > ---
> > >  drivers/net/i40e/i40e_ethdev.h |  1 +
> > >  drivers/net/i40e/i40e_fdir.c   | 94 ++++++++++++++++++++++++++++++++
> > >  drivers/net/i40e/i40e_flow.c   | 97 +---------------------------------
> > >  3 files changed, 97 insertions(+), 95 deletions(-)
> > >
> >
> > <...>


More information about the dev mailing list