From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 7CDAB1B1D6 for ; Thu, 11 Jan 2018 09:13:21 +0100 (CET) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1-us4.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id EC9EABC005E; Thu, 11 Jan 2018 08:13:19 +0000 (UTC) Received: from ocex03.SolarFlarecom.com (10.20.40.36) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Thu, 11 Jan 2018 00:13:17 -0800 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1044.25 via Frontend Transport; Thu, 11 Jan 2018 00:13:17 -0800 Received: from uklogin.uk.solarflarecom.com (uklogin.uk.solarflarecom.com [10.17.10.10]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id w0B8DFYS010476; Thu, 11 Jan 2018 08:13:15 GMT Received: from uklogin.uk.solarflarecom.com (localhost.localdomain [127.0.0.1]) by uklogin.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id w0B8DFhk001318; Thu, 11 Jan 2018 08:13:15 GMT From: Andrew Rybchenko To: CC: Thomas Monjalon , Ferruh Yigit , Shahaf Shuler Date: Thu, 11 Jan 2018 08:12:33 +0000 Message-ID: <1515658359-1041-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.2.3 MIME-Version: 1.0 Content-Type: text/plain X-MDID: 1515658400-Djgd3xXHVWWJ Subject: [dpdk-dev] [PATCH 0/6] net/sfc: convert to the new offload API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 08:13:21 -0000 May be it is too late to suggest a new API functions to ethdev, but hopefully if the idea is accepted, it could be applied in the current release cycle since these functions are trivial. I'm not sure that rte_ethdev_version.map is updated correctly since EXPERIMENTAL tag is present and I don't understand how it should be handled. In general for the transition period from old offload API to the new one it would be useful to convert Tx offloads to/from txq_flags in rte_eth_dev_info_get() for default_txconf and rte_eth_tx_queue_info_get(). Unfortunately it was lost during new offload API patches review. However, it would require testing for all network PMDs and we decided to follow more conservative approach and kept code to fill in txq_flags which should be simply removed when txq_flags are removed. Cc: Thomas Monjalon Cc: Ferruh Yigit Cc: Shahaf Shuler Ivan Malov (6): ethdev: add a function to look up Rx offload names ethdev: add a function to look up Tx offload names net/sfc: factor out function to report Rx capabilities net/sfc: convert to the new Rx offload API net/sfc: factor out function to report Tx capabilities net/sfc: convert to the new Tx offload API drivers/net/sfc/sfc_dp_tx.h | 2 + drivers/net/sfc/sfc_ethdev.c | 58 ++++++---- drivers/net/sfc/sfc_port.c | 5 +- drivers/net/sfc/sfc_rx.c | 128 +++++++++++++++------ drivers/net/sfc/sfc_rx.h | 3 + drivers/net/sfc/sfc_tx.c | 194 +++++++++++++++++++++----------- drivers/net/sfc/sfc_tx.h | 4 + lib/librte_ether/rte_ethdev.c | 87 ++++++++++++++ lib/librte_ether/rte_ethdev.h | 30 +++++ lib/librte_ether/rte_ethdev_version.map | 7 ++ 10 files changed, 396 insertions(+), 122 deletions(-) -- 2.7.4