From patchwork Wed Jun 20 08:52:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao1, Wei" X-Patchwork-Id: 41311 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 245D11B4B6; Wed, 20 Jun 2018 11:13:45 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3C8351B4B5 for ; Wed, 20 Jun 2018 11:13:43 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2018 02:13:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,246,1526367600"; d="scan'208";a="209619723" Received: from dpdk6.bj.intel.com ([172.16.182.94]) by orsmga004.jf.intel.com with ESMTP; 20 Jun 2018 02:13:41 -0700 From: Wei Zhao To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, qi.z.zhang@intel.com, Wei Zhao Date: Wed, 20 Jun 2018 16:52:53 +0800 Message-Id: <1529484773-6008-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.7.5 In-Reply-To: <20180208083630.103388-2-wei.zhao1@intel.com> References: <20180208083630.103388-2-wei.zhao1@intel.com> Subject: [dpdk-dev] [PATCH v2] net/e1000: add support for check descriptor status APIs 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Igb VF nic need to support check descriptor status APIs, they are rte_eth_rx_descriptor_status and rte_eth_tx_descriptor_status. So, this patch add ops with function pointer that enable feature. Signed-off-by: Wei Zhao --- v2: add release note document info. --- doc/guides/rel_notes/release_18_08.rst | 4 ++-- drivers/net/e1000/igb_ethdev.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/guides/rel_notes/release_18_08.rst b/doc/guides/rel_notes/release_18_08.rst index 5baa09e..f9bb135 100644 --- a/doc/guides/rel_notes/release_18_08.rst +++ b/doc/guides/rel_notes/release_18_08.rst @@ -41,9 +41,9 @@ New Features Also, make sure to start the actual text at the margin. ========================================================= -* **Added fm10k ethernet driver to support check descriptor status APIs.** +* **Added fm10k and igb VF ethernet driver to support check descriptor status APIs.** - Fm10k nic need to support check descriptor status APIs, they are + Fm10k and igb VF nic need to support check descriptor status APIs, they are rte_eth_rx_descriptor_status and rte_eth_tx_descriptor_status. add ops pointer with new function which enable feature. diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index edc7be3..f5b02b2 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -435,6 +435,9 @@ static const struct eth_dev_ops igbvf_eth_dev_ops = { .dev_supported_ptypes_get = eth_igb_supported_ptypes_get, .rx_queue_setup = eth_igb_rx_queue_setup, .rx_queue_release = eth_igb_rx_queue_release, + .rx_descriptor_done = eth_igb_rx_descriptor_done, + .rx_descriptor_status = eth_igb_rx_descriptor_status, + .tx_descriptor_status = eth_igb_tx_descriptor_status, .tx_queue_setup = eth_igb_tx_queue_setup, .tx_queue_release = eth_igb_tx_queue_release, .set_mc_addr_list = eth_igb_set_mc_addr_list,