]> git.droids-corp.org - dpdk.git/commitdiff
net/e1000: build on Windows
authorWilliam Tu <u9012063@gmail.com>
Wed, 20 Oct 2021 03:47:49 +0000 (20:47 -0700)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 21 Oct 2021 02:58:40 +0000 (04:58 +0200)
This patch enables building the e1000 driver for Windows.
I tested using two Windows VM on top of VMware Fusion,
creating two e1000 devices with device ID 0x10D3 (8274L),
verifying rx/tx works correctly using dpdk-testpmd.exe
rxonly and txonly mode.

Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Pallavi Kadam <pallavi.kadam@intel.com>
Tested-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Tested-by: Pallavi Kadam <pallavi.kadam@intel.com>
doc/guides/nics/features/e1000.ini
doc/guides/rel_notes/release_21_11.rst
drivers/net/e1000/base/e1000_osdep.h
drivers/net/e1000/e1000_ethdev.h
drivers/net/e1000/meson.build

index 5af6040e375b8afb8beecebc6a81d2b8de52d396..b33f5a86e2e9ba8eb7f0a7511b68ac37a9dccf0f 100644 (file)
@@ -27,6 +27,7 @@ Tx descriptor status = Y
 Basic stats          = Y
 FreeBSD              = Y
 Linux                = Y
+Windows              = Y
 x86-32               = Y
 x86-64               = Y
 
index b86733c7b9c0c28b60d4cafae4185bf01f75d73c..f77afc14002dd7d6a2324a237b37bd5f30f83d0d 100644 (file)
@@ -148,6 +148,10 @@ New Features
   * Implement support for tunnel offload.
   * Updated HWRM API to version 1.10.2.44
 
+* **Updated Intel e1000 emulated driver.**
+
+  * Added Intel e1000 support on Windows.
+
 * **Updated Intel iavf driver.**
 
   * Added Intel iavf support on Windows.
index 94a49f34044665dddd27174a2d4e5b41c3c63b39..cd90228cef59dc131e74eb73f5a40c381b0bd241 100644 (file)
@@ -34,7 +34,9 @@
 #define DEBUGOUT6(S, args...)   DEBUGOUT(S, ##args)
 #define DEBUGOUT7(S, args...)   DEBUGOUT(S, ##args)
 
+#ifndef UNREFERENCED_PARAMETER
 #define UNREFERENCED_PARAMETER(_p)
+#endif
 #define UNREFERENCED_1PARAMETER(_p)
 #define UNREFERENCED_2PARAMETER(_p, _q)
 #define UNREFERENCED_3PARAMETER(_p, _q, _r)
index 93bee734ae5d2d7d32789905c95b33adcb27b104..7d5d6377859ad51a0f66f2168b6f939b22c36e51 100644 (file)
@@ -6,6 +6,7 @@
 #define _E1000_ETHDEV_H_
 
 #include <stdint.h>
+#include <sys/queue.h>
 
 #include <rte_flow.h>
 #include <rte_time.h>
index c5e48c6bc7fc3f3eddbc952febfb4333bfffb566..296ec25f2ce79ae42b5f2d31380117aadc464815 100644 (file)
@@ -1,12 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-if is_windows
-    build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
 subdir('base')
 objs = [base_objs]