From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: Survey for final decision about per-port offload API Date: Mon, 02 Apr 2018 17:53:44 +0200 Message-ID: <3164302.jtqUZe9MAY@xps> References: <2759953.P7QpFFSjiU@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: "dev@dpdk.org" , Ajit Khaparde , Jerin Jacob , Shijith Thotton , Santosh Shukla , Rahul Lakkireddy , John Daley , Wenzhuo Lu , Konstantin Ananyev , Beilei Xing , Qi Zhang , Jingjing Wu , Adrien Mazarguil , =?ISO-8859-1?Q?N=E9lio?= Laranjeiro , Yongseok Koh , Tomasz Duszynski , Jianbo Liu , Alejandro Lucero , Hemant Agrawal , Shreyansh Jain , Harish Patil Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 37062AACE for ; Mon, 2 Apr 2018 18:51:40 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 01/04/2018 06:44, Shahaf Shuler: > > There is the same kind of confusion in the offload capabilities: > > rte_eth_dev_info.[rt]x_offload_capa > > rte_eth_dev_info.[rt]x_queue_offload_capa > > The queue capabilities must be a subset of port capabilities, i.e. every queue > > capabilities must be reported as port capabilities. > > But the port capabilities should be reported at queue level only if it can be > > applied to a specific queue. > > > > 4/ Do you agree with above statement (to be added in the doc)? > > No. > > The documentation should describe the API from the application side, and not provide guidelines for the PMDs implementation. > If missing, we should clarify more about what queue and port offload means. Something like: > "When port offload is enabled, the offload applies on the port along with all of its associated queues" and > "When queue offload is enabled the offload, the offload applies only on the specific queue." > > The PMDs then will decide how they report the different offloads they offer. I don't understand why you want to be free in capabilities implementation. If the capabilities are not strictly standardized, how can they be used by the application? Rewording from application point of view: All the offload capabilities (port-level and queue-level) are reported in rte_eth_dev_info.[rt]x_offload_capa. The offloads reported in rte_eth_dev_info.[rt]x_queue_offload_capa can be applied to a specific queue. Is it OK?