From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: Bruce Richardson <bruce.richardson@intel.com>
Subject: [PATCH 2/8] net/fm10k: move editable files out of base folder
Date: Fri, 14 Aug 2026 16:37:45 +0100 [thread overview]
Message-ID: <20260814153755.940302-3-bruce.richardson@intel.com> (raw)
In-Reply-To: <20260814153755.940302-1-bruce.richardson@intel.com>
The osdep headers contain the macros and other definitions needed to
allow the base code to compile as part of DPDK. They traditionally tend
to reside in the base code folder, but are an exception in that they can
be modified by regular DPDK patches, and not just as part of a base code
snapshot update. Similarly the meson.build file in the base folder is
not part of the snapshots and is an editable file in the base folder.
Therefore, we can simplify the rules around base code by moving these
files into the main driver folder, leaving the base code C files all as
uneditable except via snapshot update.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
drivers/net/intel/fm10k/base/meson.build | 11 -----------
drivers/net/intel/fm10k/{base => }/fm10k_osdep.h | 4 +++-
drivers/net/intel/fm10k/meson.build | 9 ++++++++-
3 files changed, 11 insertions(+), 13 deletions(-)
delete mode 100644 drivers/net/intel/fm10k/base/meson.build
rename drivers/net/intel/fm10k/{base => }/fm10k_osdep.h (98%)
diff --git a/drivers/net/intel/fm10k/base/meson.build b/drivers/net/intel/fm10k/base/meson.build
deleted file mode 100644
index c45b31d6b2..0000000000
--- a/drivers/net/intel/fm10k/base/meson.build
+++ /dev/null
@@ -1,11 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2017 Intel Corporation
-
-base_sources = files(
- 'fm10k_api.c',
- 'fm10k_common.c',
- 'fm10k_mbx.c',
- 'fm10k_pf.c',
- 'fm10k_tlv.c',
- 'fm10k_vf.c',
-)
diff --git a/drivers/net/intel/fm10k/base/fm10k_osdep.h b/drivers/net/intel/fm10k/fm10k_osdep.h
similarity index 98%
rename from drivers/net/intel/fm10k/base/fm10k_osdep.h
rename to drivers/net/intel/fm10k/fm10k_osdep.h
index 5f8ff10474..69c542a6d0 100644
--- a/drivers/net/intel/fm10k/base/fm10k_osdep.h
+++ b/drivers/net/intel/fm10k/fm10k_osdep.h
@@ -5,6 +5,8 @@
#ifndef _FM10K_OSDEP_H_
#define _FM10K_OSDEP_H_
+/* File containing OS dependencies for base code */
+
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
@@ -13,7 +15,7 @@
#include <rte_cycles.h>
#include <rte_io.h>
-#include "../fm10k_logs.h"
+#include "fm10k_logs.h"
/* TODO: this does not look like it should be used... */
#define ERROR_REPORT2(v1, v2, v3) do { } while (0)
diff --git a/drivers/net/intel/fm10k/meson.build b/drivers/net/intel/fm10k/meson.build
index fac4750f8d..a532b35818 100644
--- a/drivers/net/intel/fm10k/meson.build
+++ b/drivers/net/intel/fm10k/meson.build
@@ -7,7 +7,14 @@ if is_windows
subdir_done()
endif
-subdir('base')
+base_sources = files(
+ 'base/fm10k_api.c',
+ 'base/fm10k_common.c',
+ 'base/fm10k_mbx.c',
+ 'base/fm10k_pf.c',
+ 'base/fm10k_tlv.c',
+ 'base/fm10k_vf.c',
+)
sources += files(
'fm10k_ethdev.c',
--
2.53.0
next prev parent reply other threads:[~2026-08-14 15:38 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-14 15:37 [PATCH 0/8] remove non-base files from base folders Bruce Richardson
2026-08-14 15:37 ` [PATCH 1/8] net/e1000: move editable files out of base folder Bruce Richardson
2026-08-14 15:37 ` Bruce Richardson [this message]
2026-08-14 15:37 ` [PATCH 3/8] net/i40e: " Bruce Richardson
2026-08-14 15:37 ` [PATCH 4/8] net/iavf: " Bruce Richardson
2026-08-14 15:37 ` [PATCH 5/8] net/ice: " Bruce Richardson
2026-08-14 15:37 ` [PATCH 6/8] net/idpf: " Bruce Richardson
2026-08-14 15:37 ` [PATCH 7/8] net/ixgbe: " Bruce Richardson
2026-08-24 16:23 ` David Marchand
2026-08-24 16:35 ` Bruce Richardson
2026-08-14 15:37 ` [PATCH 8/8] net/ice: consolidate the sources list Bruce Richardson
2026-08-25 13:38 ` [PATCH 0/8] remove non-base files from base folders Burakov, Anatoly
2026-08-25 15:15 ` [PATCH v2 " Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 1/8] net/e1000: move editable files out of base folder Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 2/8] net/fm10k: " Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 3/8] net/i40e: " Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 4/8] net/iavf: " Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 5/8] net/ice: " Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 6/8] net/idpf: " Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 7/8] net/ixgbe: " Bruce Richardson
2026-08-25 15:15 ` [PATCH v2 8/8] net/ice: consolidate the sources list Bruce Richardson
2026-08-25 15:54 ` [PATCH v2 0/8] remove non-base files from base folders David Marchand
2026-08-25 16:03 ` Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 " Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 1/8] net/e1000: move editable files out of base folder Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 2/8] net/fm10k: " Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 3/8] net/i40e: " Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 4/8] net/iavf: " Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 5/8] net/ice: " Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 6/8] net/idpf: " Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 7/8] net/ixgbe: " Bruce Richardson
2026-08-25 16:27 ` [PATCH v3 8/8] net/ice: consolidate the sources list Bruce Richardson
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=20260814153755.940302-3-bruce.richardson@intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.