net/vmxnet3: build on Windows

Message ID 20210221005552.11739-1-dmitry.kozliuk@gmail.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series net/vmxnet3: build on Windows |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-broadcom-Performance success Performance Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-broadcom-Functional success Functional Testing PASS
ci/intel-Testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/travis-robot fail travis build: failed
ci/github-robot success github build: passed
ci/iol-testing success Testing PASS
ci/iol-abi-testing warning Testing issues

Commit Message

Dmitry Kozlyuk Feb. 21, 2021, 12:55 a.m. UTC
  Remove OS restriction and update release notes.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
---
DPDK-kmods patch: http://patchwork.dpdk.org/patch/88046/

 doc/guides/rel_notes/release_21_05.rst | 2 ++
 drivers/net/vmxnet3/meson.build        | 6 ------
 2 files changed, 2 insertions(+), 6 deletions(-)
  

Comments

Ferruh Yigit March 23, 2021, 4:11 p.m. UTC | #1
On 2/21/2021 12:55 AM, Dmitry Kozlyuk wrote:
> Remove OS restriction and update release notes.
> 
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>

Build looks good, but I wonder if anyone tested the driver on Windows.

Yong,

Do you have any plan to test the driver on Windows, should we wait your ack?
  
Yong Wang March 23, 2021, 5:13 p.m. UTC | #2
-----Original Message-----
From: Ferruh Yigit <ferruh.yigit@intel.com>
Date: Tuesday, March 23, 2021 at 9:11 AM
To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>, Yong Wang <yongwang@vmware.com>
Cc: Narcisa Ana Maria Vasile <navasile@linux.microsoft.com>, Dmitry Malloy <dmitrym@microsoft.com>, Pallavi Kadam <pallavi.kadam@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/vmxnet3: build on Windows

    On 2/21/2021 12:55 AM, Dmitry Kozlyuk wrote:
    > Remove OS restriction and update release notes.
    > 
    > Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>

    Build looks good, but I wonder if anyone tested the driver on Windows.

    Yong,

    Do you have any plan to test the driver on Windows, should we wait your ack?

Ferruh,

Unfortunately I don't have any Windows setup to test this change.  Do you know what kind of tests have been done for this change?

Yong
  
Dmitry Kozlyuk March 24, 2021, 5:50 p.m. UTC | #3
2021-03-23 17:13 (UTC+0000), Yong Wang:
> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@intel.com>
> Date: Tuesday, March 23, 2021 at 9:11 AM
> To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>, Yong Wang <yongwang@vmware.com>
> Cc: Narcisa Ana Maria Vasile <navasile@linux.microsoft.com>, Dmitry Malloy <dmitrym@microsoft.com>, Pallavi Kadam <pallavi.kadam@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] net/vmxnet3: build on Windows
> 
>     On 2/21/2021 12:55 AM, Dmitry Kozlyuk wrote:
>     > Remove OS restriction and update release notes.
>     > 
>     > Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>  
> 
>     Build looks good, but I wonder if anyone tested the driver on Windows.
> 
>     Yong,
> 
>     Do you have any plan to test the driver on Windows, should we wait your ack?
> 
> Ferruh,
> 
> Unfortunately I don't have any Windows setup to test this change.  Do you know what kind of tests have been done for this change?

For the record, I tested the following setup with Windows Server 2019 in QEMU
(-device vmxnet3) before submitting the patch:

[ping     ]           [                     ]           [     ping]
[OS       ]           [    dpdk-skeleton    ]           [       OS]
[virtio---]--sockets--[---vmxnet3 vmxnet3---]--sockets--[---virtio]
[Debian VM]           [     Windows VM      ]           [Debian VM]

Debian VMs successfully ping'd each other with Windows forwarding.
  
Yong Wang March 24, 2021, 6:32 p.m. UTC | #4
-----Original Message-----
From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Date: Wednesday, March 24, 2021 at 10:50 AM
To: Yong Wang <yongwang@vmware.com>
Cc: Ferruh Yigit <ferruh.yigit@intel.com>, "dev@dpdk.org" <dev@dpdk.org>, Narcisa Ana Maria Vasile <navasile@linux.microsoft.com>, Dmitry Malloy <dmitrym@microsoft.com>, Pallavi Kadam <pallavi.kadam@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/vmxnet3: build on Windows

    2021-03-23 17:13 (UTC+0000), Yong Wang:
    > -----Original Message-----
    > From: Ferruh Yigit <ferruh.yigit@intel.com>
    > Date: Tuesday, March 23, 2021 at 9:11 AM
    > To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>, Yong Wang <yongwang@vmware.com>
    > Cc: Narcisa Ana Maria Vasile <navasile@linux.microsoft.com>, Dmitry Malloy <dmitrym@microsoft.com>, Pallavi Kadam <pallavi.kadam@intel.com>
    > Subject: Re: [dpdk-dev] [PATCH] net/vmxnet3: build on Windows
    > 
    >     On 2/21/2021 12:55 AM, Dmitry Kozlyuk wrote:
    >     > Remove OS restriction and update release notes.
    >     > 
    >     > Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>  
    > 
    >     Build looks good, but I wonder if anyone tested the driver on Windows.
    > 
    >     Yong,
    > 
    >     Do you have any plan to test the driver on Windows, should we wait your ack?
    > 
    > Ferruh,
    > 
    > Unfortunately I don't have any Windows setup to test this change.  Do you know what kind of tests have been done for this change?

    For the record, I tested the following setup with Windows Server 2019 in QEMU
    (-device vmxnet3) before submitting the patch:

    [ping     ]           [                     ]           [     ping]
    [OS       ]           [    dpdk-skeleton    ]           [       OS]
    [virtio---]--sockets--[---vmxnet3 vmxnet3---]--sockets--[---virtio]
    [Debian VM]           [     Windows VM      ]           [Debian VM]

    Debian VMs successfully ping'd each other with Windows forwarding.

Thanks Dmitri for the testing results.  It will be good if you can try some basic tcp/udp traffic as well.

Acked-by: Yong Wang <yongwang@vmware.com>
  
Ferruh Yigit March 25, 2021, 4:04 p.m. UTC | #5
On 3/24/2021 6:32 PM, Yong Wang wrote:
> 
> -----Original Message-----
> From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
> Date: Wednesday, March 24, 2021 at 10:50 AM
> To: Yong Wang <yongwang@vmware.com>
> Cc: Ferruh Yigit <ferruh.yigit@intel.com>, "dev@dpdk.org" <dev@dpdk.org>, Narcisa Ana Maria Vasile <navasile@linux.microsoft.com>, Dmitry Malloy <dmitrym@microsoft.com>, Pallavi Kadam <pallavi.kadam@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] net/vmxnet3: build on Windows
> 
>      2021-03-23 17:13 (UTC+0000), Yong Wang:
>      > -----Original Message-----
>      > From: Ferruh Yigit <ferruh.yigit@intel.com>
>      > Date: Tuesday, March 23, 2021 at 9:11 AM
>      > To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>, Yong Wang <yongwang@vmware.com>
>      > Cc: Narcisa Ana Maria Vasile <navasile@linux.microsoft.com>, Dmitry Malloy <dmitrym@microsoft.com>, Pallavi Kadam <pallavi.kadam@intel.com>
>      > Subject: Re: [dpdk-dev] [PATCH] net/vmxnet3: build on Windows
>      >
>      >     On 2/21/2021 12:55 AM, Dmitry Kozlyuk wrote:
>      >     > Remove OS restriction and update release notes.
>      >     >
>      >     > Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
>      >
>      >     Build looks good, but I wonder if anyone tested the driver on Windows.
>      >
>      >     Yong,
>      >
>      >     Do you have any plan to test the driver on Windows, should we wait your ack?
>      >
>      > Ferruh,
>      >
>      > Unfortunately I don't have any Windows setup to test this change.  Do you know what kind of tests have been done for this change?
> 
>      For the record, I tested the following setup with Windows Server 2019 in QEMU
>      (-device vmxnet3) before submitting the patch:
> 
>      [ping     ]           [                     ]           [     ping]
>      [OS       ]           [    dpdk-skeleton    ]           [       OS]
>      [virtio---]--sockets--[---vmxnet3 vmxnet3---]--sockets--[---virtio]
>      [Debian VM]           [     Windows VM      ]           [Debian VM]
> 
>      Debian VMs successfully ping'd each other with Windows forwarding.
> 
> Thanks Dmitri for the testing results.  It will be good if you can try some basic tcp/udp traffic as well.
> 
> Acked-by: Yong Wang <yongwang@vmware.com>
> 

Applied to dpdk-next-net/main, thanks.

Added the above test detail to commit log for record.
  

Patch

diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst
index 5aa9ed7db..574f9dcf6 100644
--- a/doc/guides/rel_notes/release_21_05.rst
+++ b/doc/guides/rel_notes/release_21_05.rst
@@ -55,6 +55,8 @@  New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Enabled vmxnet3 PMD on Windows.**
+
 
 Removed Items
 -------------
diff --git a/drivers/net/vmxnet3/meson.build b/drivers/net/vmxnet3/meson.build
index 124238666..0641f776f 100644
--- a/drivers/net/vmxnet3/meson.build
+++ b/drivers/net/vmxnet3/meson.build
@@ -1,12 +1,6 @@ 
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
 
-if is_windows
-	build = false
-	reason = 'not supported on Windows'
-	subdir_done()
-endif
-
 sources += files(
 	'vmxnet3_ethdev.c',
 	'vmxnet3_rxtx.c',