Commit Graph

102 Commits

Author SHA1 Message Date
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
Anuj Mittal
f66f0fce3b layer.conf: add kirkstone to LAYERSERIES_COMPAT
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-02 16:34:44 +08:00
He Zhe
2b4470df8b dpdk-module: Set its COMPATIBLE_MACHINE and COMPATIBLE_HOST to align with dpdk
dpdk-module can now be built against qemux86 and etc. that do not support it
at all. To avoid confusing the users with compile-time errors, let's align it
with dpdk.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-01-26 11:34:03 +08:00
Anuj Mittal
11edbc7a96 dpdk: use += with FILES when packaging PN
The packaging rules are too restrictive and lead to errors when a binary
is generated that is not currently captured by the rules. Use += so it
at least is packaged and doesn't cause errors.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-12-13 15:44:02 +08:00
Naveen Saini
21121e672c dpdk/19.11: drop recipe
dpdk 21.11 support 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>
2021-12-10 14:41:55 +08:00
Naveen Saini
d144475b16 dpdk/21.11: add recipe
Release notes:
https://doc.dpdk.org/guides-21.11/rel_notes/release_21_11.html

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-12-10 14:41:55 +08:00
Yongxin Liu
2fa997c389 dpdk-module: replace random_ether_addr() with eth_random_addr()
random_ether_addr() is finally removed in kernel commit ba530fea8ca1
("ethernet: remove random_ether_addr()"). Backport commit e6cbfd9bf30b
("kni: update kernel API to set random MAC address") from dpdk repo
to use eth_random_addr() instead.

Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-12-08 08:58:13 +08:00
Anuj Mittal
6c1b9b6cfe dpdk/19.11: upgrade 19.11.5 -> 19.11.9
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-28 00:39:36 +08:00
Naveen Saini
84709a1281 dpdk-kmods: use https protocol
Fetch src over https url.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-20 23:07:24 +08:00
Naveen Saini
17a7102a4f dpdk-kmods: add recipe for igb_uio kernel module
It provides UIO kernek driver for Intel IGB PCI cards.

http://git.dpdk.org/dpdk-kmods/

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-13 10:08:11 +08:00
Anuj Mittal
dec6933961 layer.conf: add honister to LAYERSERIES_COMPAT
Mark the layer as compatible with honister and remove gatesgarth.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-03 23:51:34 +08:00
Anuj Mittal
7703645765 Convert to using new override syntax
Use the script convert-overrides.py to convert to new syntax.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-03 23:48:18 +08:00
Mohamad Noor Alim Hussin
fb2dd96868 dpdk: fix finding librt
The generated pkg-config libdpdk.pc file has the output
with full path of librt such as
<builddir>/recipe-sysroot/usr/lib/librt.so
instead of -lrt.

This will cause an issue when compile DPDK app
with static library as the librt is not found with the
hardcode path in the libdpdk.pc file.

Signed-off-by: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-06-25 15:57:30 +08:00
Mingli Yu
e73b8ba6a6 dpdk: fix build with GCC 11
Fixes:
 | In function 'memset',
 |     inlined from 'test_table_stub' at test_table_tables.c:151:4:
 | /buildarea/tmp/work/intel_x86_64-wrs-linux/dpdk/19.11.5-r0/recipe-sysroot/usr/include/bits/string_fortified.h:59:10: error: '__builtin_memset' offset [0, 31] is out of the bounds [0, 0] [-Werror=array-bounds]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-06-10 16:24:12 +08:00
Anuj Mittal
c011004a49 dpdk/20.11: disable afxdp PACKAGECONFIG by default
libbpf is in meta-oe and dpdk layer doesn't depend on oe layer.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-07 16:32:22 +08:00
Mohamad Noor Alim Hussin
512bad803b dpdk/20.11: Enable libbpf PACKAGECONFIG for AF_XDP driver
AF_XDP driver depend of libbpf. Enable it so that AF_XDP
driver can be compiled.

Signed-off-by: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-07 08:43:53 +08:00
Zqiang
8fb1422a63 dpdk/20.11: add libvirt PACKAGECONFIG
Fix follow warning
"WARNING: dpdk-20.11.1-r0 do_configure: QA Issue: dpdk:
invalid PACKAGECONFIG: libvirt [invalid-packageconfig]"

Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-26 10:43:43 +08:00
Naveen Saini
7ec861d3c9 dpdk-module: add recipe
This recipe builds rte_kni.ko module

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-16 09:03:18 +08:00
Naveen Saini
d4ddaf2e54 dpdk/20.11: add recipe
kernel module is provided using seperate dpdk-module recipe.

Release notes:
https://doc.dpdk.org/guides-20.11/rel_notes/release_20_11.html

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-16 09:03:18 +08:00
Naveen Saini
d511c4260b dpdk/18.11: drop recipe
Re-structured .inc and .bb

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-16 09:03:18 +08:00
Naveen Saini
6965aae1c2 layer.conf: add hardknott to LAYERSERIES_COMPAT
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-03-25 09:40:40 +08:00
Yongxin Liu
c1b8e5e910 dpdk/19.11: fix binding for built-in kernel drivers
Since commit 681a67288655 ("usertools: check if module is loaded
before binding") in dpdk, usertools/dpdk-devbind.py only checks
dynamic kernel drivers in /sys/module. So built-in kernel driver
cannot be bound.

Add "usertools-devbind-fix-binding-for-built-in-kernel-dr.patch" to
fix this issue.

Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-12-08 09:38:19 +08:00
Anuj Mittal
dd993590cd layer.conf: add gatesgarth to LAYERSERIES_COMPAT
And remove zeus as that is no longer supported or tested.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-19 11:51:45 +08:00
Lee Chee Yang
ae5d09f376 dpdk: update to 19.11.5
updates also fixed these CVE's
- CVE-2020-14374
- CVE-2020-14375
- CVE-2020-14376
- CVE-2020-14377
- CVE-2020-14378

see:
http://inbox.dpdk.org/announce/73386a14-6e5a-83e4-051d-125b5c5fe5d9@intel.com/T/#u

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-14 15:13:59 +08:00
Lee Chee Yang
9b467b39b8 dpdk: update to 18.11.10
updates also fixed these CVE's
- CVE-2020-14374
- CVE-2020-14375
- CVE-2020-14376
- CVE-2020-14377
- CVE-2020-14378

see:
http://inbox.dpdk.org/announce/73386a14-6e5a-83e4-051d-125b5c5fe5d9@intel.com/T/#u

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-14 15:13:59 +08:00
He Zhe
7a9ee23de7 dpdk: Backport to fix build failure for kernel v5.9
kernel/linux/kni/kni_dev.h:104:8: error: too many arguments to function 'get_user_pages_remote'
  104 |  ret = get_user_pages_remote(tsk, tsk->mm, iova, 1,
      |        ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-24 08:48:45 +08:00
Anuj Mittal
25e754eaf1 dpdk: upgrade 19.11.2 -> 19.11.3
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-02 10:38:15 +08:00
Yanfei Xu
80970ad035 dpdk: replace the "mater" with "main"
Upstream renamed branch name 'master' to 'main',
so let's change it.

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-01 08:34:08 +08:00
Anuj Mittal
e063e70a0d dpdk: upgrade 18.11.7 -> 18.11.8
Fixes:

    - CVE-2020-10722
    - CVE-2020-10723
    - CVE-2020-10724
    - CVE-2020-10725
    - CVE-2020-10726

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-21 09:21:12 +08:00
Anuj Mittal
a34c1d4209 dpdk: upgrade 19.11.1 -> 19.11.2
Fixes:

- CVE-2020-10722
- CVE-2020-10723
- CVE-2020-10724
- CVE-2020-10725
- CVE-2020-10726

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-21 09:15:30 +08:00
Hongxu Jia
238b8772dd dpdk: fix compile failure on gcc10
Since oe-core upgraded gcc to 10.1, there is a failure
...
|path_to_dpdk/19.11.1-r0/git/examples/ipsec-secgw/ipsec_process.c:131:34:
error: 'grp.m' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
|  131 |    grp[n].cnt = pkts + i - grp[n].m;
...

Add option `-Wno-error=maybe-uninitialized' to workaround

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-21 09:15:07 +08:00
Éloi Bail
2b077a7ece dpdk: RDEPENDS on pciutils
dpdk-devbind tool relies on lspci tool with specific options which are
not provided by lspci from busybox.

Signed-off-by: Eloi Bail <eloi.bail@savoirfairelinux.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-01 00:05:23 +08:00
Éloi Bail
24131a8f2e README: change the mailing list email address
meta-intel@lists.yoctoproject.org should be used instead of
meta-intel@yoctoproject.org.

Signed-off-by: Eloi Bail <eloi.bail@savoirfairelinux.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-01 00:05:23 +08:00
Anuj Mittal
a84fef2b5f dpdk/19.11: upgrade 19.11.0 -> 19.11.1
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-20 10:05:38 +08:00
Anuj Mittal
b11f6044df dpdk/18.11: upgrade 18.11.5 -> 18.11.7
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-20 09:55:30 +08:00
Anuj Mittal
6fdc5a8749 layer.conf: add compatibility with dunfell
And remove thud and warrior as they are not tested.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-03-31 10:51:49 +08:00
He Zhe
99b7249250 dpdk: Backport to fix build failure for kernel v5.6
kernel/linux/kni/kni_net.c:786:20: error: initialization of
'void (*)(struct net_device *, unsigned int)' from incompatible pointer type
'void (*)(struct net_device *)' [-Werror=incompatible-pointer-types]
  786 |  .ndo_tx_timeout = kni_net_tx_timeout,
      |                    ^~~~~~~~~~~~~~~~~~

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-03-25 16:15:05 +08:00
Yi Zhao
f290fa81c6 dpdk: fix do_install error for test programs
The commit 8c2fb51323 introduces an error
when installing test programs:

/buildarea//build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memory.o):
In function `eal_legacy_hugepage_init':
eal_memory.c:(.text+0x1f71): undefined reference to `memfd_create'
/buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memalloc.o):
In function `get_seg_fd.constprop.0':
eal_memalloc.c:(.text+0x61f): undefined reference to `memfd_create'
eal_memalloc.c:(.text+0x696): undefined reference to `memfd_create'
/buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memalloc.o):
In function `eal_memalloc_init':
eal_memalloc.c:(.text+0x21ad): undefined reference to `memfd_create'
/buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_pmd_memif.a(rte_eth_memif.o):rte_eth_memif.c:(.text+0xbc3): more undefined references to `memfd_create' follow
collect2: error: ld returned 1 exit status

The test programs have been complied and install to ${S}/test/app
directory. We just need to ship them to ${D} directory.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-25 15:05:53 +08:00
He Zhe
f47d49eb14 Revert "dpdk: Add check against necessary kernel options"
This reverts commit c29b7a480a.

Unfortunely, the reverted commit does not work in every cases. If
KERNEL_FEATURES was set in somewhere else other than a global configuration,
for example in kernel's bbappend, there would be no way for dpdk recipe to
detect if the wanted feature has been enabled.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-24 16:56:40 +08:00
He Zhe
24cd3e389b dpdk: Fix dpdk18 build with CONFIG_NAME
5eba511c5e ("dpdk: add recipe for 19.11") introduces CONFIG_NAME and
TEST_DIR for dpdk19 but not for dpdk18. Fix it.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-18 13:54:05 +08:00
He Zhe
c29b7a480a dpdk: Add check against necessary kernel options
dpdk requires kernel option features/intel-dpdk/intel-dpdk.scc to build.
We'd better warn users in advance before they meet some confusing errors
at compile-time.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-18 13:53:47 +08:00