aboutsummaryrefslogtreecommitdiffstats
path: root/build/external/patches
diff options
context:
space:
mode:
authorXinyao Cai <xinyao.cai@intel.com>2023-05-09 21:23:39 +0800
committerXinyao Cai <xinyao.cai@intel.com>2023-05-09 21:23:39 +0800
commit648006b3c0e5c18a0bd74479a6bbd436ef53746d (patch)
tree54b83c886bf5e581f120aaf328eca6ea33b15e74 /build/external/patches
parent4141ded3ec876313a5c7f74a93dec3e18940180a (diff)
dpdk: code preparation for bumping to DPDK 23.03
This patch prepares code for bumping DPDK version to 23.03, but the DPDK version of this patch keeps at 22.11 for compatibility. the "no-dsa" parameter in DPDK configuration is removed, the "blacklist" parameter can be used to block the related DSA devices. Type: feature Signed-off-by: Xinyao Cai <xinyao.cai@intel.com> Change-Id: I589afba165e85138437e731531414a033f64f8d3
Diffstat (limited to 'build/external/patches')
-rw-r--r--build/external/patches/dpdk_23.03/0001-allow-the-use-of-ab-flag-the-same-time-in-EAL.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/build/external/patches/dpdk_23.03/0001-allow-the-use-of-ab-flag-the-same-time-in-EAL.patch b/build/external/patches/dpdk_23.03/0001-allow-the-use-of-ab-flag-the-same-time-in-EAL.patch
new file mode 100644
index 00000000000..d013b6a6850
--- /dev/null
+++ b/build/external/patches/dpdk_23.03/0001-allow-the-use-of-ab-flag-the-same-time-in-EAL.patch
@@ -0,0 +1,54 @@
+From baa172f1a9e370a0549a31840c3cd148046d1d84 Mon Sep 17 00:00:00 2001
+From: Xinyao Cai <xinyao.cai@intel.com>
+Date: Tue, 18 Apr 2023 16:37:17 +0800
+Subject: [PATCH] allow the use of -a and -b flag the same time in EAL
+ parameters.
+
+---
+ lib/eal/common/eal_common_options.c | 14 --------------
+ 1 file changed, 14 deletions(-)
+
+diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c
+index 0305933698..0d8f9c5a38 100644
+--- a/lib/eal/common/eal_common_options.c
++++ b/lib/eal/common/eal_common_options.c
+@@ -1623,24 +1623,15 @@ int
+ eal_parse_common_option(int opt, const char *optarg,
+ struct internal_config *conf)
+ {
+- static int b_used;
+- static int a_used;
+-
+ switch (opt) {
+ case 'b':
+- if (a_used)
+- goto ba_conflict;
+ if (eal_option_device_add(RTE_DEVTYPE_BLOCKED, optarg) < 0)
+ return -1;
+- b_used = 1;
+ break;
+
+ case 'a':
+- if (b_used)
+- goto ba_conflict;
+ if (eal_option_device_add(RTE_DEVTYPE_ALLOWED, optarg) < 0)
+ return -1;
+- a_used = 1;
+ break;
+ /* coremask */
+ case 'c': {
+@@ -1929,11 +1920,6 @@ eal_parse_common_option(int opt, const char *optarg,
+ }
+
+ return 0;
+-
+-ba_conflict:
+- RTE_LOG(ERR, EAL,
+- "Options allow (-a) and block (-b) can't be used at the same time\n");
+- return -1;
+ }
+
+ static void
+--
+2.34.1
+