> -----Original Message----- > From: dev <[email protected]> On Behalf Of Zhang, Qi Z > Sent: Wednesday, May 22, 2019 8:03 PM > To: Thomas Monjalon <[email protected]>; Ananyev, Konstantin > <[email protected]> > Cc: Ergin, Mesut A <[email protected]>; Xing, Beilei > <[email protected]>; [email protected]; Yigit, Ferruh > <[email protected]>; Andrew Rybchenko > <[email protected]> > Subject: Re: [dpdk-dev] [PATCH 2/3] net/i40e: add runtime option to disable > vector rx > > > -----Original Message----- > > From: Thomas Monjalon [mailto:[email protected]] > > Sent: Wednesday, May 22, 2019 10:05 PM > > To: Ananyev, Konstantin <[email protected]> > > Cc: Ergin, Mesut A <[email protected]>; Xing, Beilei > > <[email protected]>; Zhang, Qi Z <[email protected]>; > > [email protected]; Yigit, Ferruh <[email protected]>; Andrew Rybchenko > > <[email protected]> > > Subject: Re: [dpdk-dev] [PATCH 2/3] net/i40e: add runtime option to > > disable vector rx > > > > Hi, > > > > 22/05/2019 13:01, Ananyev, Konstantin: > > > > As far as I can see, passing FDIR configuration via the rte_eth_conf > struct: > > > > struct rte_fdir_conf fdir_conf; /**< FDIR configuration. > > > > DEPRECATED */ was deprecated. I suspect in favor of the late > > > > binding design mentioned, but again, I don't know the history on > > > > that. IMO, this > > made devargs a better choice. > > > > > > Ok, then it looks like there is a flaw in ethdev level API that needs to > > > be > fixed: > > > We deprecated old way to request FD usage without introducing new > one. > > > CC-ing to ethdev maintainers - > > > Guys is there a new way to request FD enablement, instead of > > > deprecated > > fdir_config? > > > Seems like not, unless I missed something obvious. > > > If not, then we probably need either to re-deprecate fdir_config, or > > > introduce > > some new method. > > > My first thought would be to add new DEV_RX_OFFLOAD_* flag(s). > > > Does it make sense? > > > > Sorry,I have not read the full thread so I may be out of topic. > > Please be aware that the flow director API is deprecated in favor of > > the more generic rte_flow API. > > > > What we need is a software mark when a flow is hit, it is stored in mbuf->fdir > (there is another discussion to change the name "fdir" to a more generic > one) For intel driver, vector rx Path does not support software mark, so > currently we use rte_eth_conf-> rte_fdir_conf->mode to prevent vector > path be selected when fdir is required. > actually this is not make very sense, vector path is only necessary to be > disabled when software mark is required, but not for general fdir Now since > it will be removed, it's a good chance to improve this, a new offload flag > such > as DEV_RX_OFFLOAD_FLOW_MARK looks like what we needed..
+1 to a new offload flag. > > Regards > Qi >

