Commit Graph

142 Commits

Author SHA1 Message Date
Changqing Li
eda9e18bdf
dpdk: fix lib32-dpdk compile failure
Fix the following compile error:
"../git/lib/ethdev/ethdev_trace.h: In function
'rte_eth_trace_timesync_write_time':
../git/lib/eal/include/rte_common.h:498:55: error: size of unnamed array is
negative
  498 | #define RTE_BUILD_BUG_ON(condition) ((void)sizeof(char[1 -
      2*!!(condition)]))"

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-06-05 07:04:41 +08:00
Yogesh Tyagi
63c8031c95
dpdk-module : Drop obsolete CVE ignores as they are not relevant for current version
The CPE data in the NVD database is now complete,
so these ignores are no longer needed.

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-05-26 16:48:01 +08:00
Yogesh Tyagi
66da651100
dpdk : Drop obsolete CVE ignores as they are not relevant for current version
The CPE data in the NVD database is now complete,
so these ignores are no longer needed.

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-05-26 16:48:01 +08:00
Yogesh Tyagi
9129b4e08c
dpdk-module : add whitespace around assignments to fix build warnings
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-05-26 16:48:00 +08:00
Yogesh Tyagi
59a2755d76
layer.conf: update to include compatibility with walnascar
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-04-08 20:30:30 +08:00
Xiangyu Chen
4f5ff4c3c8
dpdk: backport patches to fix build
Currently, a number of integer types are typedef'd to their corresponding
userspace or RTE values. This can be problematic if these types are already
defined somewhere else, as it would cause type collisions.

The error like this:
gve_osdep.h:45:20: error: conflicting types for '__le64';
have 'rte_le64_t' {aka 'long unsigned int'} | 45 | typedef rte_le64_t __le64; | | ^~~~~~ |
....
recipe-sysroot/usr/include/linux/types.h:35:25: note: previous declaration of
'__le64' with type '__le64' {aka 'long long unsigned int'} | 35 | typedef __u64 __bitwise __le64;

The upstream has already fixed, backport them to 23.11.x.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-02-13 23:27:14 +08:00
Anuj Mittal
becaf7c182 dpdk: upgrade 22.11.7 -> 22.11.7
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-12-04 13:40:24 +08:00
Anuj Mittal
4ded196c90
layer.conf: update to include compatibility with styhead
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-09-12 08:57:46 +08:00
Yogesh Tyagi
4cb0ed66f4 dpdk-module/22.11: upgrade 22.11.5 -> 22.11.6
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-08-22 23:15:58 +08:00
Yogesh Tyagi
c35091e9d8 dpdk: upgrade 22.11.5 -> 22.11.6
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-08-22 23:15:58 +08:00
Mun Chun Yep
0f12d2eddf dpdk: upgrade 21.11 -> 22.11
Signed-off-by: Mun Chun Yep <mun.chun.yep@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-05-27 18:51:09 +08:00
Mun Chun Yep
bc701e378c dpdk: update 23.11 -> 23.11.1
Signed-off-by: Mun Chun Yep <mun.chun.yep@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-05-27 18:51:09 +08:00
Cory Keitz
9bd8203482 layer.conf: update LAYERSERIES_COMPAT for scarthgap
openembedded-core has moved to scarthgap:

0e42326d ("layer.conf: Prepare for release, drop nanbield LAYERSERIES")

Add scarthgap to LAYERSERIES_COMPAT and drop EOL mickeldore.

Signed-off-by: Cory Keitz <ckeitz@amazon.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-03-19 08:50:22 +08:00
Mingli Yu
6bb0d25138 dpdk: Make sure -march exist
Fixes:
   ERROR: ExpansionError during parsing /build/layers/meta-dpdk/recipes-extended/dpdk/dpdk_23.11.bb
   Traceback (most recent call last):
     File "Var <EXTRA_OEMESON>", line 1, in <module>
     File "/build/layers/meta-dpdk/recipes-extended/dpdk/dpdk_23.11.bb", line 12, in get_cpu_instruction_set(bb=<module 'bb' from '/build/layers/oe-core/bitbake/lib/bb/__init__.py'>, d=<bb.data_smart.DataSmart object at 0x7f63569bb070>):
         import re
     >    march = re.search(r'-march=([^\s]*)', d.getVar('CC')).group(1)
         return march
   bb.data_smart.ExpansionError: Failure expanding variable EXTRA_OEMESON, expression was  -Dexamples=all -Dcpu_instruction_set=${@get_cpu_instruction_set(bb, d)}   which triggered exception AttributeError: 'NoneType' object has no attribute 'group'
   The variable dependency chain for the failure is: EXTRA_OEMESON -> meson_do_configure

   ERROR: Parsing halted due to errors, see error messages above

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-01-08 15:31:58 +08:00
Lee Chee Yang
617ca40b42 dpdk: 23.07 -> 23.11 (LTS)
drop the dpdk-module, kni driver now dropped.
f78c100bc8

EXTRA_OEMESON remove enable_kmods.

set the cpu_instruction_set through EXTRA_OEMESON.

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-12-08 09:04:48 +08:00
Lee Chee Yang
3493058e7d xdp-tools: update to 1.2.10
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-10-06 08:56:32 +08:00
Anuj Mittal
4ca36ee060 dpdk.inc: switch to using https protocol
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-10-03 15:32:47 +08:00
Lee Chee Yang
49a0a03184 layer.conf: update LAYERSERIES_COMPAT
LAYERSERIES_COMPAT add nanbield and drop EOL langdale.

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-10-03 14:57:53 +08:00
Lee Chee Yang
cb685ae574 dpdk/23: update to 23.07
Drop CVE IGNORE as both CVE-2021-3839 and CVE-2022-0669 were fixed in
22.03.

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-10-03 14:57:36 +08:00
Lee Chee Yang
2fc2b68bdc dpdk/21.11: update to 21.11.5
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-10-03 14:55:42 +08:00
Yogesh Tyagi
42915eb520 dpdk-module/21.11: upgrade 21.11.3 -> 21.11.4
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-07-07 09:46:59 +08:00
Yogesh Tyagi
44a8090265 dpdk/21.11: upgrade 21.11.3 -> 21.11.4
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-07-07 09:46:59 +08:00
Yogesh Tyagi
b4b2d83966 dpdk-module/21.11: upgrade 21.11.2 -> 21.11.3
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-11 10:37:31 +08:00
Yogesh Tyagi
2253c356f6 dpdk/21.11: upgrade 21.11.2 -> 21.11.3
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-11 10:37:31 +08:00
Yogesh Tyagi
a49e0e1555 dpdk-kmods: upgrade to commit hash e721c733cd24206399bebb8f0751b0387c4c1595
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-10 16:04:59 +08:00
Yogesh Tyagi
1a78228cf3 dpdk-module: upgrade 22.07.0 -> 23.03
Refresh patch to fix following build error in dpdk-module:
~build/tmp-glibc/work/intel_skylake_64-oe-linux/dpdk-module/23.03-r0/git/kernel/linux/kni/kni_net.c:22:10: fatal error: rte_kni_common.h: No such file or directory

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-10 16:04:59 +08:00
Yogesh Tyagi
cbbe321bc6 dpdk: upgrade 22.07.0 -> 23.03
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-10 16:04:59 +08:00
Naveen Saini
42608b107a xdp-tools: build static library
The problem with shared library is that generated object files are also
required additionally by libxdp. So build the static library instead of
installing .o files as well (which would need us to disable stripping
etc.)

Error log while building libxdp:
| libxdp: Couldn't find a BPF file with name xsk_def_xdp_prog.o
| xsk_configure(): Failed to create xsk socket

Enable production option too. Also see:

https://github.com/xdp-project/xdp-tools/issues/180

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-02-07 09:52:17 +08:00
Anuj Mittal
6e3c19f735 xdp-tools: fix multilib build
The project sets libdir path to /usr/lib [1] which is not always
correct and results in failures when $libdir, as an example, is
/usr/lib64. Set the correct value of LIBDIR.

[1] https://github.com/xdp-project/xdp-tools/blob/v1.2/lib/defines.mk#L11

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-01-31 22:00:06 +08:00
Anuj Mittal
f244352c4c layer.conf: add mickledore to LAYERSERIES_COMPAT
OE-Core has switched to mickledore:
https://git.openembedded.org/openembedded-core/commit/?id=57239d66b933c4313cf331d35d13ec2d0661c38f

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-01-04 09:52:43 +08:00
Naveen Saini
58b60ea11b dpdk-kmods: update to latest commit
Carry a patch which allows to support 5.18+ kernel ABI.

https://git.launchpad.net/ubuntu/+source/dpdk-kmods/tree/debian/patches/0001-support-linux-5.18.patch?id=9d628c02c169d8190bc2cb6afd81e4d364c382cd

Build error with 5.19 kernel:
igb_uio.c:515:15: error: implicit declaration of function 'pci_set_dma_mask';
did you mean 'ipi_send_mask'? [-Werror=implicit-function-declaration]

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-11-15 21:43:28 +08:00
Naveen Saini
a4c830bec3 dpdk/21.11.2: add libxdp library in PACKAGECONFIG
With latest libbpf version (>=0.7.0), additional libxdp
library also require to build net/af_xdp libs.

xdp-tools provides libxdp library.

Ref:
https://git.dpdk.org/dpdk-stable/commit/drivers/net/af_xdp?h=21.11&id=6721fb14eb1f91a0afc629c61eb99e63b247c1f3

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-31 10:01:01 +08:00
Naveen Saini
12900bd7b1 xdp-tools: add recipe
xdp-tools - Library and utilities for use with XDP.

It also provides libxdp library.

https://github.com/xdp-project/xdp-tools

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-31 10:01:01 +08:00
Kai Kang
f6895c0dd2 dpdk/22.07.0: fix SRC_URI
The SRC_URI should be "https://dpdk.org/git/dpdk" for https protocol.
Otherwise it fails to fetch with git and fetch a tarball from premirror
instead:

  WARNING: dpdk-module-22.07.0-r0 do_fetch: Failed to fetch URL
  git://dpdk.org/dpdk;branch=releases;protocol=https, attempting MIRRORS if available

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-31 06:55:56 +08:00
Naveen Saini
590c01813e dpdk/20.11: drop recipe
Recipe for dpdk 22.07 already has been added. So time to drop it.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-25 14:37:48 +08:00
Naveen Saini
4557324dde dpdk/22.07.0: add recipe
https://git.dpdk.org/dpdk/

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-25 14:37:48 +08:00
Naveen Saini
a491d84ccc dpdk: inherit pkgconfig
meson build using pkg-config method when searching for the dependency.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-13 19:48:16 +08:00
Anuj Mittal
33decb1431 conf/layer.conf: add langdale to LAYERSERIES_COMPAT
Make sure we're compatible with upcoming release. Also remove
compatibility with old releases.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-30 08:27:42 +08:00
Yogesh Tyagi
0474fd940e dpdk-module/21.11: ignore CVE-2021-3839 and CVE-2022-0669
These are fixed in 21.11.1 but the CPE data in NVD is incomplete.

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-19 11:22:12 +08:00
Yogesh Tyagi
b479e720ab dpdk: ignore CVE-2022-0669
This is fixed in 21.11.1 but the CPE data in NVD is incomplete.
[ upstream commit link https://git.dpdk.org/dpdk-stable/commit/?h=21.11&id=6cb68162e4b598b7c0747372fa3fcec9cddd19b8 ]

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-08 10:42:41 +08:00
Yogesh Tyagi
010674478c dpdk-module/21.11 : update version to 21.11.2
Drops upstreamed patch:
 * 0001-kni_net.c-use-netif_rx-instead-of-netif_rx_ni.patch

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-06 09:22:02 +08:00
Yogesh Tyagi
ec25349326 dpdk/21.11 : update version to 21.11.2
Drops upstreamed patch:
 * 0002-dma-idxd-fix-AVX2-in-non-datapath-functions.patch

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-06 09:22:02 +08:00
Yogesh Tyagi
7ad385f8e9 dpdk-module/20.11 : update version to 20.11.6
Drops upstreamed patch
 * 0002-kni-update-kernel-API-to-set-random-MAC-address.patch

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-06 09:22:02 +08:00
Yogesh Tyagi
cfaf998653 dpdk/20.11: update to v20.11.6
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-06 09:22:02 +08:00
Yogesh Tyagi
ea9013a484 dpdk: ignore CVE-2021-3839
This is fixed in 21.11.1 but the CPE data in NVD is incomplete.

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-05 17:06:42 +08:00
Yongxin Liu
b06ab02b69 dpdk/21.11: fix illegal instruction on non-AVX CPU
Backport a patch from main branch to fix illegal instruction
issue on CPU which has no AVX instructions.

Reference:
https://bugs.dpdk.org/show_bug.cgi?id=1038

Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-07-13 17:11:28 +08:00
Mingli Yu
09098721b1 dpdk-module: use netif_rx() instead of netif_rx_ni()
The netif_rx_ni is removed in below commit after kernel upgraded
to 5.18, so use netif_rx() instead of netif_rx_ni() to fix the gap.
2655926aea9b net: Remove netif_rx_any_context() and netif_rx_ni().

Fixes:
  | TOPDIR/tmp-glibc/work/intel_x86_64-wrs-linux/dpdk-module/21.11.0-r0/git/kernel/linux/kni/kni_net.c: In function 'kni_net_rx_normal':
  | TOPDIR/tmp-glibc/work/intel_x86_64-wrs-linux/dpdk-module/21.11.0-r0/git/kernel/linux/kni/kni_net.c:444:17: error: implicit declaration of function 'netif_rx_ni'; did you mean 'netif_rx'? [-Werror=implicit-function-declaration]
  444 |                 netif_rx_ni(skb);

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-05-19 19:15:07 +08:00
Naveen Saini
ad5fdb707f dpdk/20.11: update to v20.11.5
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-05-06 19:05:16 +08:00
Naveen Saini
6d1f4657c8 dpdk/21.11: update to v21.11.1
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-05-06 19:05:16 +08:00
Yongxin Liu
716b61a2c9 Update LICENSE variable to use SPDX license identifiers
In oe-core commit ceda3238cdbf ("meta/meta-selftest/meta-skeleton: Update
LICENSE variable to use SPDX license identifiers"), all LICENSE variables
were updated to only use SPDX license identifiers.

Fix the following warnings:

WARNING: dpdk-21.11.0-r0 do_package_qa: QA Issue: Recipe LICENSE
includes obsolete licenses LGPLv2.1 GPLv2 [obsolete-license]
WARNING: dpdk-kmods-1.0-r0 do_package_qa: QA Issue: Recipe LICENSE
includes obsolete licenses GPL-2 [obsolete-license]

Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-22 13:04:09 +08:00