]> git.droids-corp.org - dpdk.git/commitdiff
net/vmxnet3: update to version 3
authorShrikrishna Khare <skhare@vmware.com>
Mon, 6 Mar 2017 22:55:07 +0000 (14:55 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:51 +0000 (15:52 +0200)
With all vmxnet3 version 3 changes incorporated in the vmxnet3 driver,
the driver can configure emulation to run at vmxnet3 version 3, provided
the emulation advertises support for version 3.

This patch also updates release notes.

Signed-off-by: Shrikrishna Khare <skhare@vmware.com>
Acked-by: Yong Wang <yongwang@vmware.com>
Acked-by: Jin Heo <heoj@vmware.com>
doc/guides/rel_notes/release_17_05.rst
drivers/net/vmxnet3/vmxnet3_ethdev.c

index 2c76d82d87245edd4217a0aa744cd1e95c13ca4c..0b6c453c4bb6650d2486843b30831eb3084edafc 100644 (file)
@@ -79,6 +79,12 @@ New Features
 
   i40e PMD and its vector PMD enabled by default in powerpc.
 
+* **Added vmxnet3 version 3 support.**
+
+  Added support for vmxnet3 version 3 which includes several
+  performance enhancements viz. configurable TX data ring, Receive
+  Data Ring, ability to register memory regions.
+
 
 Resolved Issues
 ---------------
index bb22b6d23bd39cb672e0a5fa0350b0306f22afce..ae3efaa0857ac0acd4576476467fa1d062136f71 100644 (file)
@@ -284,7 +284,11 @@ eth_vmxnet3_dev_init(struct rte_eth_dev *eth_dev)
        ver = VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_VRRS);
        PMD_INIT_LOG(DEBUG, "Hardware version : %d", ver);
 
-       if (ver & (1 << VMXNET3_REV_2)) {
+       if (ver & (1 << VMXNET3_REV_3)) {
+               VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_VRRS,
+                                      1 << VMXNET3_REV_3);
+               hw->version = VMXNET3_REV_3 + 1;
+       } else if (ver & (1 << VMXNET3_REV_2)) {
                VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_VRRS,
                                       1 << VMXNET3_REV_2);
                hw->version = VMXNET3_REV_2 + 1;