From patchwork Wed Apr 26 19:04:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ronak Doshi X-Patchwork-Id: 126557 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3F5B42A0A; Wed, 26 Apr 2023 21:31:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF64242D61; Wed, 26 Apr 2023 21:30:12 +0200 (CEST) Received: from EX-PRD-EDGE02.vmware.com (ex-prd-edge02.vmware.com [208.91.3.34]) by mails.dpdk.org (Postfix) with ESMTP id 256E442D39 for ; Wed, 26 Apr 2023 21:04:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=s1024; d=vmware.com; h=from:to:cc:subject:date:message-id:in-reply-to:mime-version: content-type; bh=DJ0feCiE+01MRRgeJhRQJEMgoG2diKpwlzkf8yrSCIQ=; b=H7WIy5Zwen1EVFmc/lm5lfsy784EzJ3RYSK9srzyHVEVZl1BdmFtVwWIGJhD0J MqXI7z9VTr1igzDcHkKRd2FqPsV2E6LL5+PSMD9saTp6pB8D0y/3CN/j6QPKrF XjYrdRNEj40oey6zq4slFuJyNgzKUrCu+71OIuOo6iQUmmg= Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX-PRD-EDGE02.vmware.com (10.188.245.7) with Microsoft SMTP Server id 15.1.2375.34; Wed, 26 Apr 2023 12:04:32 -0700 Received: from htb-1n-eng-dhcp122.eng.vmware.com (unknown [10.20.114.216]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 5F0C5202A6; Wed, 26 Apr 2023 12:04:34 -0700 (PDT) Received: by htb-1n-eng-dhcp122.eng.vmware.com (Postfix, from userid 0) id 5A1BBA83B6; Wed, 26 Apr 2023 12:04:34 -0700 (PDT) From: Ronak Doshi To: Jochen Behrens CC: , Ronak Doshi Subject: [PATCH v2 next 7/7] net/vmxnet3: update to version 7 Date: Wed, 26 Apr 2023 12:04:14 -0700 Message-ID: <20230426190415.28239-8-doshir@vmware.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20230426190415.28239-1-doshir@vmware.com> References: <20230426190415.28239-1-doshir@vmware.com> MIME-Version: 1.0 Received-SPF: None (EX-PRD-EDGE02.vmware.com: doshir@vmware.com does not designate permitted sender hosts) X-Mailman-Approved-At: Wed, 26 Apr 2023 21:30:01 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org With all vmxnet3 version 7 changes incorporated in the vmxnet3 driver, the driver can configure emulation to run at vmxnet3 version 7, provided the emulation advertises support for version 7. Signed-off-by: Ronak Doshi Acked-by: Jochen Behrens --- doc/guides/nics/vmxnet3.rst | 26 ++++++++++++++++++++++++++ doc/guides/rel_notes/release_23_07.rst | 6 ++++++ drivers/net/vmxnet3/vmxnet3_ethdev.c | 6 +++++- drivers/net/vmxnet3/vmxnet3_ring.h | 2 +- 4 files changed, 38 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/vmxnet3.rst b/doc/guides/nics/vmxnet3.rst index 190cf91a47..d96e296530 100644 --- a/doc/guides/nics/vmxnet3.rst +++ b/doc/guides/nics/vmxnet3.rst @@ -67,6 +67,32 @@ There are several options available for filtering packets at VMXNET3 device leve * VLAN tag based filtering without load balancing - SUPPORTED +#. Vmxnet3 versions and associated features. + + Vmxnet3 version is tied to corresponding ESXi hardware version and each + version defines a set of compatible features. + + * Vmxnet3 version 7, hw ver 19 + This version adds support for Uniform Passthrough(UPT). + + * Vmxnet3 version 6, hw ver 17 + This version enhanced vmxnet3 to support queues up to 32 and also + removed power-of-two limitations on the queues. + + * Vmxnet3 version 5, hw ver 15 + Features not related to dpdk vmxnet3 PMD. + + * Vmxnet3 version 4, hw ver 14 + This version adds supoprt for UDP and ESP RSS + + * Vmxnet3 version 3, hw ver 13 + This version added performance enhancement features such as + configurable Tx data ring, Receive Data Ring, and the ability + to register memory regions. + + * Vmxnet3 version 2, hw ver 11 + This version adds support for Large Receive offload (LRO). + .. note:: diff --git a/doc/guides/rel_notes/release_23_07.rst b/doc/guides/rel_notes/release_23_07.rst index a9b1293689..907a06cd62 100644 --- a/doc/guides/rel_notes/release_23_07.rst +++ b/doc/guides/rel_notes/release_23_07.rst @@ -55,6 +55,12 @@ New Features Also, make sure to start the actual text at the margin. ======================================================= + * **Added vmxnet3 version 7 support.** + + Added support for vmxnet3 version 7 which includes support + for uniform passthrough(UPT). The patches also add support + for new capability registers, large passthru BAR and some + performance enhancements for UPT. Removed Items ------------- diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index b9cf007429..41073e9798 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -410,7 +410,11 @@ eth_vmxnet3_dev_init(struct rte_eth_dev *eth_dev) /* Check h/w version compatibility with driver. */ ver = VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_VRRS); - if (ver & (1 << VMXNET3_REV_6)) { + if (ver & (1 << VMXNET3_REV_7)) { + VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_VRRS, + 1 << VMXNET3_REV_7); + hw->version = VMXNET3_REV_7 + 1; + } else if (ver & (1 << VMXNET3_REV_6)) { VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_VRRS, 1 << VMXNET3_REV_6); hw->version = VMXNET3_REV_6 + 1; diff --git a/drivers/net/vmxnet3/vmxnet3_ring.h b/drivers/net/vmxnet3/vmxnet3_ring.h index 50992349d8..948762db90 100644 --- a/drivers/net/vmxnet3/vmxnet3_ring.h +++ b/drivers/net/vmxnet3/vmxnet3_ring.h @@ -7,7 +7,7 @@ #define VMXNET3_RX_CMDRING_SIZE 2 -#define VMXNET3_DRIVER_VERSION_NUM 0x01012000 +#define VMXNET3_DRIVER_VERSION_NUM 0x01013000 /* Default ring size */ #define VMXNET3_DEF_TX_RING_SIZE 512