DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Jasper Tran O'Leary" <jtranoleary@google.com>
To: joshwash@google.com
Cc: dev@dpdk.org, "Jasper Tran O'Leary" <jtranoleary@google.com>
Subject: [PATCH v2] net/gve: support gve driver on FreeBSD
Date: Thu, 26 Jun 2025 21:19:21 +0000	[thread overview]
Message-ID: <20250626211921.2291937-1-jtranoleary@google.com> (raw)
In-Reply-To: <20250625182751.1936925-1-jtranoleary@google.com>

This commit adds small changes so that the gve driver can build when
FreeBSD is the host operating system.

Signed-off-by: Jasper Tran O'Leary <jtranoleary@google.com>
Acked-by: Joshua Washington <joshwash@google.com>
---
 .mailmap                         | 1 +
 doc/guides/nics/features/gve.ini | 1 +
 drivers/net/gve/base/gve_osdep.h | 2 --
 drivers/net/gve/gve_ethdev.c     | 2 +-
 drivers/net/gve/meson.build      | 4 ++--
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.mailmap b/.mailmap
index 8483d96ec5..4ce891b223 100644
--- a/.mailmap
+++ b/.mailmap
@@ -650,6 +650,7 @@ Jaroslaw Gawin <jaroslawx.gawin@intel.com>
 Jaroslaw Ilgiewicz <jaroslaw.ilgiewicz@intel.com>
 Jason He <jason.he@broadcom.com>
 Jason Wang <jasowang@redhat.com>
+Jasper Tran O'Leary <jtranoleary@google.com>
 Jasvinder Singh <jasvinder.singh@intel.com>
 Jay Ding <jay.ding@broadcom.com>
 Jay Jayatheerthan <jay.jayatheerthan@intel.com>
diff --git a/doc/guides/nics/features/gve.ini b/doc/guides/nics/features/gve.ini
index f18b829eda..ed040a01dd 100644
--- a/doc/guides/nics/features/gve.ini
+++ b/doc/guides/nics/features/gve.ini
@@ -14,6 +14,7 @@ RSS key update       = Y
 RSS reta update      = Y
 L4 checksum offload  = Y
 Basic stats          = Y
+FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
diff --git a/drivers/net/gve/base/gve_osdep.h b/drivers/net/gve/base/gve_osdep.h
index 5eb33930cd..c47ce4da85 100644
--- a/drivers/net/gve/base/gve_osdep.h
+++ b/drivers/net/gve/base/gve_osdep.h
@@ -25,9 +25,7 @@

 #include "../gve_logs.h"

-#ifdef RTE_EXEC_ENV_LINUX
 #include <sys/utsname.h>
-#endif

 #ifndef u8
 #define u8 uint8_t
diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index e471a34e61..bdb7f1d075 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -1366,5 +1366,5 @@ static struct rte_pci_driver rte_gve_pmd = {

 RTE_PMD_REGISTER_PCI(net_gve, rte_gve_pmd);
 RTE_PMD_REGISTER_PCI_TABLE(net_gve, pci_id_gve_map);
-RTE_PMD_REGISTER_KMOD_DEP(net_gve, "* igb_uio | vfio-pci");
+RTE_PMD_REGISTER_KMOD_DEP(net_gve, "* igb_uio | vfio-pci | nic_uio");
 RTE_LOG_REGISTER_SUFFIX(gve_logtype_driver, driver, NOTICE);
diff --git a/drivers/net/gve/meson.build b/drivers/net/gve/meson.build
index ed5ef0a1fc..add431c2bb 100644
--- a/drivers/net/gve/meson.build
+++ b/drivers/net/gve/meson.build
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(C) 2022 Intel Corporation

-if not is_linux
+if is_windows
     build = false
-    reason = 'only supported on Linux'
+    reason = 'not supported on Windows'
     subdir_done()
 endif

--
2.49.0


      parent reply	other threads:[~2025-06-26 21:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-25 18:27 [PATCH] " Jasper Tran O'Leary
2025-06-25 21:53 ` Joshua Washington
2025-06-26  7:42 ` Bruce Richardson
2025-06-26  7:55 ` David Marchand
2025-06-26 14:10 ` Stephen Hemminger
2025-06-26 21:14   ` Jasper Tran O'Leary
2025-06-26 21:19 ` Jasper Tran O'Leary [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250626211921.2291937-1-jtranoleary@google.com \
    --to=jtranoleary@google.com \
    --cc=dev@dpdk.org \
    --cc=joshwash@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).