From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: ethdev new offloading API switch in PMDs Date: Wed, 2 May 2018 14:27:33 +0100 Message-ID: References: <63bfaed3-660b-34d7-d8db-87e55500bad3@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Thomas Monjalon , dpdk-dev , Ravi Kumar , Ajit Khaparde , Somnath Kotur , Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin , Bruce Richardson To: Shahaf Shuler , Gaetan Rivet , Qi Zhang , Xiao Wang , Beilei Xing , Wenzhuo Lu , Konstantin Ananyev , Adrien Mazarguil , =?UTF-8?Q?N=c3=a9lio_Laranjeiro?= , Yongseok Koh , Santosh Shukla , Jerin Jacob , Rasesh Mody , Harish Patil , Shahed Shaikh , Andrew Rybchenko , Pascal Mazon , Maciej Czekaj , Maxime Coquelin , Tiwei Bie , Yong Wang Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 2043323C for ; Wed, 2 May 2018 15:27:40 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 5/2/2018 1:52 PM, Shahaf Shuler wrote: > Wednesday, May 2, 2018 11:47 AM, Ferruh Yigit: >> Subject: Re: [dpdk-dev] ethdev new offloading API switch in PMDs >> >> On 5/2/2018 6:34 AM, Shahaf Shuler wrote: >>> Tuesday, May 1, 2018 5:01 PM, Ferruh Yigit: >>>> Subject: ethdev new offloading API switch in PMDs >>>> >>>> Hi, >>>> >>>> Following PMDs still has .txq_flags in use, after basic grep, no >>>> in-dept investigation done. >>>> >>>> With PMDs switch to new API, that flag no longer should be needed. >>>> >>>> Old applications still use it but ethdev converts them to the >>>> offloads, so that PMDs can only concern about offloads. >>>> >>> >>> Full removal of txq_flags can be done only after we will mitigate the >> "queue offloads must match port offload" constrain. >> >> Why? What is the relation of the flag and constrain? > > The PMD has to know if to verify port offloads and queue offload correlation. > It is done by looking on the ETH_TXQ_FLAGS_IGNORE flag. Perhaps I am missing something but why done looking ETH_TXQ_FLAGS_IGNORE flag? ETH_TXQ_FLAGS_IGNORE flag means application is using new API and "offloads" variable is valid instead of "txq_flags" ethdev uses this information to convert "txq_flags" to "offloads", for PMD "offloads" are always valid. PMD can check [rt]xmode->offloads (port offloads) and [rt]xq->offloads (queue offloads) to verify between port and queue offloads. What is missing in this check? > > When we mitigate the constraion/deprecate the old API we can remove this. > >> Independent from constrain all PMDs switch to new API which doesn't use >> txq_flags anymore, what blocks removing it from PMDs? >> >>> >>>> Can maintainer of following PMDs please check their offloading API >>>> implementation: >>>> >>>> axgbe >>>> bnxt >>>> e1000 >>>> ena >>>> failsafe >>>> fm10k >>>> i40e >>>> ixgbe >>>> mlx4 >>>> mlx5 >>>> octeontx >>>> qede >>>> sfc >>>> tap >>>> thunderx >>>> virtio >>>> vmxnet3 >