From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 8106D1B016 for ; Thu, 18 Jan 2018 08:02:55 +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 1D4E4280075; Thu, 18 Jan 2018 07:02:54 +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; Wed, 17 Jan 2018 23:02:49 -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; Wed, 17 Jan 2018 23:02:49 -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 w0I72onm005002; Thu, 18 Jan 2018 07:02:50 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 w0I72oeI005945; Thu, 18 Jan 2018 07:02:50 GMT From: Andrew Rybchenko To: CC: Thomas Monjalon , Ferruh Yigit , Shahaf Shuler Date: Thu, 18 Jan 2018 07:02:25 +0000 Message-ID: <1516258951-5897-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1515658359-1041-1-git-send-email-arybchenko@solarflare.com> References: <1515658359-1041-1-git-send-email-arybchenko@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain X-MDID: 1516258974-I+a9kuK82qnf Subject: [dpdk-dev] [PATCH v2 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, 18 Jan 2018 07:02:55 -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 --- v2: - make new ethdev API experimentatal (map file and function comment) - use space instead of TAB after #define for RTE_?X_OFFLOAD_BIT2STR 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 | 36 ++++++ lib/librte_ether/rte_ethdev_version.map | 2 + 10 files changed, 397 insertions(+), 122 deletions(-) -- 2.7.4