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 115A9199B5 for ; Thu, 18 Jan 2018 08:08:04 +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 C238D280071; Thu, 18 Jan 2018 07:08:02 +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:07:58 -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:07:58 -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 w0I77wH0007087; Thu, 18 Jan 2018 07:07:58 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 w0I77wXZ006928; Thu, 18 Jan 2018 07:07:58 GMT From: Andrew Rybchenko To: CC: Thomas Monjalon , Ferruh Yigit , Shahaf Shuler Date: Thu, 18 Jan 2018 07:07:43 +0000 Message-ID: <1516259269-6887-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: 1516259283-pxPoHrQjO4YM Subject: [dpdk-dev] [PATCH v3 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:08:04 -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 --- v3: - add Reviewed-by lost in previous version 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