diff --git a/0267-usertools-add-Intel-DLB-device-binding.patch b/0267-usertools-add-Intel-DLB-device-binding.patch new file mode 100644 index 0000000000000000000000000000000000000000..1e8c2e7d9201bc0860a69293a36831fa52db4a1c --- /dev/null +++ b/0267-usertools-add-Intel-DLB-device-binding.patch @@ -0,0 +1,47 @@ +From 774817cfc75d26028439211566e81cfd601d35f6 Mon Sep 17 00:00:00 2001 +From: Timothy McDaniel +Date: Mon, 26 Apr 2021 10:34:50 -0500 +Subject: [PATCH] usertools: add Intel DLB device binding + +Add DLB to usertools/dpdk-devbind.py so that it shows up +as an eventdev, and is identified as Intel DLB. + +Signed-off-by: Timothy McDaniel +--- + buildtools/call-sphinx-build.py | 3 +-- + usertools/dpdk-devbind.py | 2 ++ + 2 files changed, 3 insertions(+), 2 deletions(-) + mode change 100644 => 100755 usertools/dpdk-devbind.py + +diff --git a/buildtools/call-sphinx-build.py b/buildtools/call-sphinx-build.py +index 26b199220..fd0631164 100755 +--- a/buildtools/call-sphinx-build.py ++++ b/buildtools/call-sphinx-build.py +@@ -19,8 +19,7 @@ + ver = run([sphinx, '--version'], stdout=PIPE, + stderr=STDOUT).stdout.decode().split()[-1] + sphinx_cmd = [sphinx] + extra_args +-if StrictVersion(ver) >= StrictVersion('1.7'): +- sphinx_cmd += ['-j', 'auto'] ++sphinx_cmd += ['-j', 'auto'] + + # find all the files sphinx will process so we can write them as dependencies + srcfiles = [] +diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py +old mode 100644 +new mode 100755 +index 8af3089ae..9b063dae9 +--- a/usertools/dpdk-devbind.py ++++ b/usertools/dpdk-devbind.py +@@ -47,6 +47,8 @@ + + hisilicon_dma = {'Class': '08', 'Vendor': '19e5', 'Device': 'a122', + 'SVendor': None, 'SDevice': None} ++intel_dlb = {'Class': '0b', 'Vendor': '8086', 'Device': '270b,2710,2714', ++ 'SVendor': None, 'SDevice': None} + intel_ioat_bdw = {'Class': '08', 'Vendor': '8086', + 'Device': '6f20,6f21,6f22,6f23,6f24,6f25,6f26,6f27,6f2e,6f2f', + 'SVendor': None, 'SDevice': None} +-- +2.23.0 + diff --git a/dpdk.spec b/dpdk.spec index ed6ccc026e12d3ac706900ebe33474c748698a2c..bdc70f7752375312f27ba1d2adb6911e5a7cbb5c 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -1,6 +1,6 @@ Name: dpdk Version: 20.11 -Release: 15 +Release: 16 Packager: packaging@6wind.com URL: http://dpdk.org %global source_version 20.11 @@ -273,6 +273,7 @@ Patch263: 0263-net-hns3-remove-magic-numbers.patch Patch264: 0264-net-hns3-mark-unchecked-return-of-snprintf.patch Patch265: 0265-net-hns3-remove-PF-VF-duplicate-code.patch Patch266: 0266-app-testpmd-remove-unused-header-file.patch +Patch267: 0267-usertools-add-Intel-DLB-device-binding.patch Summary: Data Plane Development Kit core Group: System Environment/Libraries @@ -291,7 +292,8 @@ BuildRequires: meson ninja-build gcc BuildRequires: kernel-devel numactl-devel BuildRequires: libpcap libpcap-devel BuildRequires: uname-build-checks -BuildRequires: doxygen python3-sphinx chrpath +BuildRequires: chrpath +#BuildRequires: doxygen python3-sphinx %define kern_devel_ver %(uname -r) @@ -327,7 +329,8 @@ This package contains the pdump tool for capture the dpdk network packets. %build export CFLAGS="%{optflags}" -meson %{target} -Ddisable_drivers=*/octeontx2 -Ddisable_drivers=*/fpga* -Ddisable_drivers=*/ifpga* -Denable_kmods=true -Denable_docs=true +#meson %{target} -Ddisable_drivers=*/octeontx2 -Ddisable_drivers=*/fpga* -Ddisable_drivers=*/ifpga* -Denable_kmods=true -Denable_docs=true +meson %{target} -Ddisable_drivers=*/octeontx2 -Ddisable_drivers=*/fpga* -Ddisable_drivers=*/ifpga* -Denable_kmods=true ninja -C %{target} %install @@ -397,7 +400,7 @@ strip -g $RPM_BUILD_ROOT/lib/modules/${namer}/extra/dpdk/rte_kni.ko /usr/share/dpdk/%{target}/lib/* %files doc -/usr/local/share/doc/* +#/usr/local/share/doc/* %files tools /usr/bin/dpdk-pdump @@ -411,6 +414,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/${namer}/extra/dpdk/rte_kni.ko /usr/sbin/depmod %changelog +* Fri Dec 03 2021 Min Hu - 20.11-16 +- Fix execution failure to add DLB to usertools/dpdk-devbind.py + * Fri Nov 12 2021 Min Hu - 20.11-15 - synchronize dmadev and refactor for hns3 PMD