Compare commits
14 Commits
v24.06-rc2
...
v22.02
Author | SHA1 | Date | |
---|---|---|---|
|
7911f29c51 | ||
|
d3ba176774 | ||
|
8cd5a1a1e0 | ||
|
83945776cb | ||
|
201830e1b9 | ||
|
47617a98c8 | ||
|
53ecd05962 | ||
|
7b35695c23 | ||
|
9d2db2eb2e | ||
|
e3d36d18c1 | ||
|
0fb3a93a03 | ||
|
65c070f9da | ||
|
ab2478ceed | ||
|
93e5bea2d3 |
@ -1,4 +1,4 @@
|
||||
# Minimal clang-format version is 11
|
||||
# Minimal clang-format version is 8
|
||||
|
||||
BasedOnStyle: GNU
|
||||
UseTab: Always
|
||||
@ -13,36 +13,18 @@ ForEachMacros:
|
||||
- 'clib_bitmap_foreach'
|
||||
- 'pool_foreach'
|
||||
- 'pool_foreach_index'
|
||||
- 'pool_foreach_pointer'
|
||||
- 'vec_foreach'
|
||||
- 'vec_foreach_backwards'
|
||||
- 'vec_foreach_index'
|
||||
- 'vec_foreach_index_backwards'
|
||||
- 'vec_foreach_pointer'
|
||||
- 'vlib_foreach_rx_tx'
|
||||
- 'foreach_int'
|
||||
- 'foreach_pointer'
|
||||
- 'foreach_vlib_main'
|
||||
- 'foreach_set_bit_index'
|
||||
- 'foreach_vlib_frame_bitmap_set_bit_index'
|
||||
- 'FOREACH_ARRAY_ELT'
|
||||
- 'RTE_ETH_FOREACH_DEV'
|
||||
- 'foreach_vnet_dev_rx_queue_runtime'
|
||||
- 'foreach_vnet_dev_counter'
|
||||
- 'foreach_vnet_dev_port_rx_queue'
|
||||
- 'foreach_vnet_dev_port_tx_queue'
|
||||
- 'foreach_vnet_dev_port'
|
||||
- 'foreach_vnet_dev_args'
|
||||
- 'foreach_vnet_dev_port_args'
|
||||
|
||||
StatementMacros:
|
||||
- 'CLIB_MULTIARCH_FN'
|
||||
- 'VLIB_NODE_FN'
|
||||
- 'VNET_DEV_NODE_FN'
|
||||
- 'VNET_DEVICE_CLASS_TX_FN'
|
||||
- '__clib_section'
|
||||
- '__clib_aligned'
|
||||
|
||||
WhitespaceSensitiveMacros:
|
||||
- 'WARN_ON'
|
||||
- 'WARN_OFF'
|
||||
|
21
.github/workflows/close_prs.yml
vendored
21
.github/workflows/close_prs.yml
vendored
@ -1,21 +0,0 @@
|
||||
---
|
||||
name: Close Pull Request
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
# Optional. Post a issue comment just before closing a pull request.
|
||||
comment: "Thank you so much for your interest! VPP takes patches at https://gerrit.fd.io/
|
||||
|
||||
```
|
||||
git clone https://gerrit.fd.io/r/vpp
|
||||
```
|
||||
|
||||
Using [git review](https://www.mediawiki.org/wiki/Gerrit/git-review) to contribute patches is recommended"
|
39
.gitignore
vendored
39
.gitignore
vendored
@ -10,19 +10,24 @@
|
||||
/build-root/path_setup
|
||||
/build-root/deb/debian/vpp-plugins/
|
||||
/build-root/deb/.pybuild/
|
||||
/build-root/*.buildinfo
|
||||
/build-root/*.deb
|
||||
/build-root/*.rpm
|
||||
/build-root/*.tar.xz
|
||||
/build-root/*.changes
|
||||
/build-root/rpmbuild/
|
||||
/build-root/test-coverage/
|
||||
/build-root/test/
|
||||
/build-root/test-doc/
|
||||
/build-root/test-cov/
|
||||
/test/run/
|
||||
/test/build/
|
||||
/test/coverage/
|
||||
/test/venv/
|
||||
/test/vapi_test/
|
||||
/test/doc/build/
|
||||
/build-config.mk
|
||||
/build/external/*.tar.gz
|
||||
/build/external/*.tar.xz
|
||||
/build/external/vpp-*
|
||||
/build/external/dpdk_mlx_default.sh
|
||||
/build/external/vpp-*.deb
|
||||
/build/external/vpp-*.changes
|
||||
/build/external/downloads/
|
||||
/path_setup
|
||||
/tools/
|
||||
@ -82,7 +87,6 @@ GTAGS
|
||||
# language servers
|
||||
compile_commands.json
|
||||
.clangd
|
||||
.cache
|
||||
|
||||
# indent backup files
|
||||
*.BAK
|
||||
@ -114,26 +118,3 @@ compile_commands.json
|
||||
|
||||
# debian packaging
|
||||
.pc
|
||||
|
||||
# No test log files
|
||||
**/test-run-*-*-*
|
||||
|
||||
# host stack test framework
|
||||
/extras/hs-test/vpp-data
|
||||
/extras/hs-test/hs-test
|
||||
/extras/hs-test/http_server
|
||||
/extras/hs-test/.build.ok
|
||||
/extras/hs-test/summary/
|
||||
|
||||
# ./configure
|
||||
/CMakeFiles
|
||||
/bin
|
||||
/lib
|
||||
/.ninja_deps
|
||||
/.ninja_log
|
||||
/.cmake
|
||||
/CMakeCache.txt
|
||||
/build.ninja
|
||||
/cmake_install.cmake
|
||||
/startup.conf
|
||||
/startup.vpp
|
||||
|
@ -2,4 +2,4 @@
|
||||
host=gerrit.fd.io
|
||||
port=29418
|
||||
project=vpp
|
||||
defaultbranch=stable/2406
|
||||
defaultbranch=stable/2202
|
||||
|
@ -86,10 +86,6 @@ committers:
|
||||
company: 'intel'
|
||||
email: 'roy.fan.zhang@intel.com'
|
||||
id: 'royzhang1980'
|
||||
- name: 'Mohammed HAWARI'
|
||||
company: 'cisco'
|
||||
email: 'momohawari@gmail.com'
|
||||
id: 'momohawari'
|
||||
tsc:
|
||||
# yamllint disable rule:line-length
|
||||
approval: 'https://wiki.fd.io/view/TSC/Meeting_Minutes'
|
||||
@ -100,6 +96,3 @@ tsc:
|
||||
- type: 'Addition'
|
||||
name: 'Fan Zhang'
|
||||
link: 'https://lists.fd.io/g/vpp-dev/message/19068'
|
||||
- type: 'Approval'
|
||||
name: 'Mohammed HAWARI'
|
||||
link: 'https://ircbot.wl.linuxfoundation.org/meetings/fdio-meeting/2023/fd_io_tsc/fdio-meeting-fd_io_tsc.2023-06-01-15.00.html'
|
||||
|
139
MAINTAINERS
139
MAINTAINERS
File diff suppressed because it is too large
Load Diff
@ -42,4 +42,4 @@ external_configure = echo
|
||||
|
||||
external_build = echo
|
||||
|
||||
external_install = $(MAKE) $(DPDK_MAKE_ARGS) -C external ebuild-build ebuild-install
|
||||
external_install = make $(DPDK_MAKE_ARGS) -C external ebuild-build ebuild-install
|
||||
|
@ -30,15 +30,6 @@ vpp_cmake_args += -DCMAKE_PREFIX_PATH:PATH="$(vpp_cmake_prefix_path)"
|
||||
ifeq ("$(V)","1")
|
||||
vpp_cmake_args += -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
||||
endif
|
||||
ifneq ($(VPP_PLATFORM),)
|
||||
vpp_cmake_args += -DVPP_PLATFORM="$(VPP_PLATFORM)"
|
||||
endif
|
||||
ifneq ($(VPP_EXCLUDED_PLUGINS),)
|
||||
vpp_cmake_args += -DVPP_EXCLUDED_PLUGINS="$(VPP_EXCLUDED_PLUGINS)"
|
||||
endif
|
||||
ifneq (${SOURCE_DATE_EPOCH}),)
|
||||
vpp_cmake_args += -DVPP_SOURCE_DATE_EPOCH="$(SOURCE_DATE_EPOCH)"
|
||||
endif
|
||||
|
||||
ifneq ($(VPP_EXTRA_CMAKE_ARGS),)
|
||||
vpp_cmake_args += $(VPP_EXTRA_CMAKE_ARGS)
|
||||
|
@ -39,7 +39,7 @@
|
||||
######################################################################
|
||||
|
||||
# Scripts require non-POSIX parts of bash
|
||||
SHELL := $(shell which bash)
|
||||
SHELL := /bin/bash
|
||||
|
||||
# Where this makefile lives
|
||||
MU_BUILD_ROOT_DIR = $(shell pwd)
|
||||
@ -365,7 +365,7 @@ NATIVE_TOOLS_$(IS_LINUX) += $(NATIVE_TOOLS_LINUX)
|
||||
CROSS_TOOLS_$(IS_LINUX) += glibc gcc
|
||||
|
||||
# must be first for bootstrapping
|
||||
NATIVE_TOOLS = findutils $(MAKE)
|
||||
NATIVE_TOOLS = findutils make
|
||||
|
||||
# basic tools needed for build system
|
||||
NATIVE_TOOLS += git automake autoconf libtool texinfo tar
|
||||
@ -614,7 +614,7 @@ check_platform = \
|
||||
-a ! -x "`which 2> /dev/null $${target_gcc}`" ] ; then \
|
||||
$(call build_msg_fn, \
|
||||
No cross-compiler found for platform $(PLATFORM) target $(TARGET); \
|
||||
try $(MAKE) PLATFORM=$(PLATFORM) install-tools) ; \
|
||||
try make PLATFORM=$(PLATFORM) install-tools) ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
@ -650,18 +650,11 @@ configure_check_timestamp = \
|
||||
# /proc/cpuinfo does not exist on platforms without a /proc and on some
|
||||
# platforms, notably inside containers, it has no content. In those cases
|
||||
# we assume there's 1 processor; we use 2*ncpu for the -j option.
|
||||
#
|
||||
# On FreeBSD we can call nproc to get the number of processors.
|
||||
#
|
||||
# NB: GNU Make 4.2 will let us use '$(file </proc/cpuinfo)' to both test
|
||||
# for file presence and content; for now this will have to do.
|
||||
ifndef MAKE_PARALLEL_JOBS
|
||||
ifeq ($(shell uname), FreeBSD)
|
||||
MAKE_PARALLEL_JOBS = $(shell nproc)
|
||||
else
|
||||
MAKE_PARALLEL_JOBS = $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo), \
|
||||
$(shell grep -c ^processor /proc/cpuinfo), 2)
|
||||
endif # FreeBSD
|
||||
endif
|
||||
MAKE_PARALLEL_FLAGS ?= $(if $($(PACKAGE)_make_parallel_fails),,-j $(MAKE_PARALLEL_JOBS))
|
||||
|
||||
@ -807,7 +800,7 @@ pull-all:
|
||||
$(call build_msg_fn,Git pull build tools) ; \
|
||||
$(call tool_make_target_fn,pull-all) ; \
|
||||
$(call build_msg_fn,Git pull packages for platform $(PLATFORM)) ; \
|
||||
$(MAKE) PLATFORM=$(PLATFORM) $(patsubst %,%-pull-all,$(ROOT_PACKAGES))
|
||||
make PLATFORM=$(PLATFORM) $(patsubst %,%-pull-all,$(ROOT_PACKAGES))
|
||||
|
||||
.PHONY: %-diff
|
||||
%-diff:
|
||||
@ -969,13 +962,13 @@ $(PLATFORM_IMAGE_DIR)/ro.img ro-image: $(patsubst %,%-find-source,$(ROOT_PACKAGE
|
||||
chmod 0755 $${tmp_dir} ; \
|
||||
cd $${tmp_dir} ; \
|
||||
trap "rm -rf $${tmp_dir}" err ; \
|
||||
fakeroot $(SHELL) -c "{ \
|
||||
fakeroot /bin/bash -c "{ \
|
||||
set -eu$(BUILD_DEBUG) ; \
|
||||
$(MAKE) -C $(MU_BUILD_ROOT_DIR) IMAGE_INSTALL_DIR=$${tmp_dir} \
|
||||
$(patsubst %,%-image_install, \
|
||||
basic_system \
|
||||
$(ROOT_PACKAGES)) ; \
|
||||
: $(MAKE) dev directory ; \
|
||||
: make dev directory ; \
|
||||
$(linuxrc_makedev) ; \
|
||||
echo @@@@ Relocating ELF executables to run in / @@@@ ; \
|
||||
scripts/set-rpath /$(arch_lib_dir):/lib ; \
|
||||
@ -1061,7 +1054,7 @@ rw-image: rw-image-check-type ro-image
|
||||
chmod 0755 $${tmp_dir} ; \
|
||||
cd $${tmp_dir} ; \
|
||||
trap "rm -rf $${tmp_dir}" err ; \
|
||||
fakeroot $(SHELL) -c "{ \
|
||||
fakeroot /bin/bash -c "{ \
|
||||
set -eu$(BUILD_DEBUG) ; \
|
||||
$(linuxrc_makedev) ; \
|
||||
$(call rw_image_embed_ro_image_fn,$${ro_image}) ; \
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2015 Cisco and/or its affiliates.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
39
build/external/Makefile
vendored
39
build/external/Makefile
vendored
@ -12,21 +12,17 @@
|
||||
# limitations under the License.
|
||||
|
||||
# Scripts require non-POSIX parts of bash
|
||||
SHELL := $(shell which bash)
|
||||
SHELL := /bin/bash
|
||||
|
||||
DL_CACHE_DIR = $(HOME)/Downloads
|
||||
MAKE ?= make
|
||||
MAKE_ARGS ?= -j
|
||||
BUILD_DIR ?= $(CURDIR)/_build
|
||||
INSTALL_DIR ?= $(CURDIR)/_install
|
||||
PKG_VERSION ?= $(shell git describe --abbrev=0 --match 'v[0-9]*' | cut -d- -f1 | cut -dv -f2 | cut -d. -f1,2)
|
||||
PKG_VERSION ?= $(shell git describe --abbrev=0 | cut -d- -f1 | cut -dv -f2 | cut -d. -f1,2)
|
||||
PKG_SUFFIX ?= $(shell git log --oneline v$(PKG_VERSION)-rc0.. . | wc -l)
|
||||
SOURCE_DATE_EPOCH ?= $(shell git log -1 --pretty=%ct .)
|
||||
ifeq ($shell(uname), FreeBSD)
|
||||
JOBS := $(shell nproc)
|
||||
else
|
||||
JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\
|
||||
$(shell grep -c ^processor /proc/cpuinfo), 2)
|
||||
endif # FreeBSD
|
||||
|
||||
B := $(BUILD_DIR)
|
||||
I := $(INSTALL_DIR)
|
||||
@ -38,35 +34,24 @@ CMAKE?=cmake
|
||||
endif
|
||||
|
||||
ARCH_X86_64=$(filter x86_64,$(shell uname -m))
|
||||
AARCH64=$(filter aarch64,$(shell uname -m))
|
||||
|
||||
include packages.mk
|
||||
include packages/nasm.mk
|
||||
include packages/ipsec-mb.mk
|
||||
include packages/quicly.mk
|
||||
ifneq ($(shell uname), FreeBSD)
|
||||
include packages/rdma-core.mk
|
||||
include packages/dpdk.mk
|
||||
include packages/xdp-tools.mk
|
||||
include packages/octeon-roc.mk
|
||||
endif # FreeBSD
|
||||
include packages/rdma-core.mk
|
||||
include packages/libbpf.mk
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rm -rf $(B) $(I)
|
||||
|
||||
.PHONY: install
|
||||
ifeq ($(shell uname), FreeBSD)
|
||||
install: $(if $(ARCH_X86_64), ipsec-mb-install) quicly-install
|
||||
else
|
||||
install: $(if $(ARCH_X86_64), ipsec-mb-install) dpdk-install rdma-core-install quicly-install xdp-tools-install $(if $(AARCH64), octeon-roc-install)
|
||||
endif # FreeBSD
|
||||
install: $(if $(ARCH_X86_64), nasm-install ipsec-mb-install) dpdk-install rdma-core-install quicly-install libbpf-install
|
||||
|
||||
.PHONY: config
|
||||
ifeq ($(shell uname), FreeBSD)
|
||||
config: $(if $(ARCH_X86_64), ipsec-mb-config) quicly-build
|
||||
else
|
||||
config: $(if $(ARCH_X86_64), ipsec-mb-config) dpdk-config rdma-core-config quicly-build
|
||||
endif # FreeBSD
|
||||
config: $(if $(ARCH_X86_64), nasm-config ipsec-mb-config) dpdk-config rdma-core-config quicly-build
|
||||
|
||||
##############################################################################
|
||||
# .deb packaging
|
||||
@ -84,7 +69,7 @@ deb/debian/changelog: Makefile
|
||||
@echo "" >> $@
|
||||
@echo " * Version $(DEB_VER)" >> $@
|
||||
@echo "" >> $@
|
||||
@echo " -- VPP Dev <vpp-dev@lists.fd.io> $(shell date -R --date=@${SOURCE_DATE_EPOCH})" >> $@
|
||||
@echo " -- VPP Dev <vpp-dev@lists.fd.io> $(shell date -R)" >> $@
|
||||
|
||||
$(DEV_DEB): deb/debian/changelog
|
||||
@cd deb && dpkg-buildpackage -b -uc -us
|
||||
@ -172,17 +157,17 @@ ifeq ($(INSTALLED_VER)$(INSTALLED_RPM_VER),)
|
||||
@echo "development package by invoking 'make install-ext-deps'"
|
||||
@echo "from the top level directory"
|
||||
@echo "=========================================================="
|
||||
$(MAKE) config
|
||||
make config
|
||||
else
|
||||
ifneq ($(INSTALLED_VER),)
|
||||
make check-deb
|
||||
endif
|
||||
ifneq ($(INSTALLED_RPM_VER),)
|
||||
$(MAKE) check-rpm
|
||||
make check-rpm
|
||||
endif
|
||||
endif
|
||||
|
||||
ebuild-install:
|
||||
ifeq ($(INSTALLED_VER)$(INSTALLED_RPM_VER),)
|
||||
$(MAKE) install
|
||||
make install
|
||||
endif
|
||||
|
6
build/external/deb/debian/rules
vendored
6
build/external/deb/debian/rules
vendored
@ -1,9 +1,6 @@
|
||||
#!/usr/bin/make -f
|
||||
DH_VERBOSE = 1
|
||||
DEB_BUILD_OPTIONS = noddebs
|
||||
DEB_CFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -O2
|
||||
DEB_LDFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects
|
||||
DEB_CFLAGS_MAINT_APPEND = -O3
|
||||
PKG=vpp-ext-deps
|
||||
|
||||
VERSION = $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: //p')
|
||||
@ -26,8 +23,5 @@ override_dh_auto_configure:
|
||||
|
||||
override_dh_install:
|
||||
make $(MAKE_ARGS) install
|
||||
@mkdir -p $(INSTALL_DIR)
|
||||
dh_install -p$(PKG) --autodest /opt
|
||||
|
||||
override_dh_shlibdeps:
|
||||
dh_shlibdeps -l$(INSTALL_DIR)lib/
|
||||
|
2
build/external/mlx_rdma_dpdk_matrix.txt
vendored
2
build/external/mlx_rdma_dpdk_matrix.txt
vendored
@ -1,2 +0,0 @@
|
||||
rdma=49.0 dpdk=23.11
|
||||
rdma=51.0 dpdk=24.03
|
27
build/external/packages.mk
vendored
27
build/external/packages.mk
vendored
@ -101,18 +101,11 @@ define $1_config_cmds
|
||||
endef
|
||||
endif
|
||||
|
||||
ifneq ($(filter $1,$(VPP_SKIP_EXTERNAL)), $1)
|
||||
$(B)/.$1.config.ok: $(B)/.$1.patch.ok $(addprefix $(B)/.,$(addsuffix .install.ok,$($1_depends)))
|
||||
$(B)/.$1.config.ok: $(B)/.$1.patch.ok $(addsuffix -install,$($1_depends))
|
||||
$$(call h1,"configuring $1 $($1_version) - log: $$($1_config_log)")
|
||||
@mkdir -p $$($1_build_dir)
|
||||
$$(call $1_config_cmds)
|
||||
@touch $$@
|
||||
else
|
||||
$(B)/.$1.config.ok:
|
||||
$$(call h1,"Skipping $1 $($1_version)")
|
||||
@mkdir -p $(B)
|
||||
@touch $$@
|
||||
endif
|
||||
|
||||
.PHONY: $1-config
|
||||
$1-config: $(B)/.$1.config.ok
|
||||
@ -127,17 +120,10 @@ define $1_build_cmds
|
||||
endef
|
||||
endif
|
||||
|
||||
ifneq ($(filter $1,$(VPP_SKIP_EXTERNAL)), $1)
|
||||
$(B)/.$1.build.ok: $(B)/.$1.config.ok
|
||||
$$(call h1,"building $1 $($1_version) - log: $$($1_build_log)")
|
||||
$$(call $1_build_cmds)
|
||||
@touch $$@
|
||||
else
|
||||
$(B)/.$1.build.ok:
|
||||
$$(call h1,"Skipping $1 $($1_version)")
|
||||
@mkdir -p $(B)
|
||||
@touch $$@
|
||||
endif
|
||||
|
||||
.PHONY: $1-build
|
||||
$1-build: $(B)/.$1.build.ok
|
||||
@ -152,24 +138,13 @@ define $1_install_cmds
|
||||
endef
|
||||
endif
|
||||
|
||||
ifneq ($(filter $1,$(VPP_SKIP_EXTERNAL)), $1)
|
||||
$(B)/.$1.install.ok: $(B)/.$1.build.ok
|
||||
$$(call h1,"installing $1 $($1_version) - log: $$($1_install_log)")
|
||||
$$(call $1_install_cmds)
|
||||
@touch $$@
|
||||
else
|
||||
$(B)/.$1.install.ok:
|
||||
$$(call h1,"Skipping $1 $($1_version)")
|
||||
@mkdir -p $(B)
|
||||
@touch $$@
|
||||
endif
|
||||
|
||||
.PHONY: $1-install
|
||||
$1-install: $(B)/.$1.install.ok
|
||||
|
||||
.PHONY: $1-show-%
|
||||
$1-show-%:
|
||||
@echo $$($$*)
|
||||
|
||||
ALL_TARGETS += $1-install
|
||||
endef
|
||||
|
45
build/external/packages/dpdk.mk
vendored
45
build/external/packages/dpdk.mk
vendored
@ -14,34 +14,24 @@
|
||||
DPDK_PKTMBUF_HEADROOM ?= 128
|
||||
DPDK_USE_LIBBSD ?= n
|
||||
DPDK_DEBUG ?= n
|
||||
DPDK_MLX4_PMD ?= n
|
||||
DPDK_MLX5_PMD ?= n
|
||||
DPDK_MLX5_COMMON_PMD ?= n
|
||||
DPDK_TAP_PMD ?= n
|
||||
DPDK_FAILSAFE_PMD ?= n
|
||||
DPDK_MACHINE ?= default
|
||||
DPDK_MLX_IBV_LINK ?= static
|
||||
|
||||
dpdk_version ?= 24.03
|
||||
dpdk_version ?= 21.11
|
||||
dpdk_base_url ?= http://fast.dpdk.org/rel
|
||||
dpdk_tarball := dpdk-$(dpdk_version).tar.xz
|
||||
dpdk_tarball_md5sum_24.03 := a98da848d6ba09808ef00f9a26aaa49a
|
||||
dpdk_tarball_md5sum_23.11 := 896c09f5b45b452bd77287994650b916
|
||||
dpdk_tarball_md5sum_23.07 := 2b6d57f077585cb15b885482362fd47f
|
||||
dpdk_tarball_md5sum_23.03 := 3cf8ebbcd412d5726db230f2eeb90cc9
|
||||
dpdk_tarball_md5sum_22.11.1 := 0594708fe42ce186a55b0235c6e20cfe
|
||||
dpdk_tarball_md5sum_22.07 := fb73b58b80b1349cd05fe9cf6984afd4
|
||||
dpdk_tarball_md5sum_22.03 := a07ca8839f98062f46e1cc359735cce8
|
||||
dpdk_tarball_md5sum_21.11 := 58660bbbe9e95abce86e47692b196555
|
||||
dpdk_tarball_md5sum_21.08 := de33433a1806280996a0ecbe66e3642f
|
||||
dpdk_tarball_md5sum_21.05 := a78bba290b11d9717d1272cc6bfaf7c3
|
||||
dpdk_tarball_md5sum := $(dpdk_tarball_md5sum_$(dpdk_version))
|
||||
dpdk_url := $(dpdk_base_url)/$(dpdk_tarball)
|
||||
dpdk_tarball_strip_dirs := 1
|
||||
ifeq ($(shell uname), FreeBSD)
|
||||
dpdk_depends := $(if $(ARCH_X86_64), ipsec-mb)
|
||||
else
|
||||
dpdk_depends := rdma-core $(if $(ARCH_X86_64), ipsec-mb)
|
||||
endif
|
||||
DPDK_MLX_DEFAULT := $(shell if grep -q "rdma=$(rdma-core_version) dpdk=$(dpdk_version)" mlx_rdma_dpdk_matrix.txt; then echo 'y'; else echo 'n'; fi)
|
||||
DPDK_MLX4_PMD ?= $(DPDK_MLX_DEFAULT)
|
||||
DPDK_MLX5_PMD ?= $(DPDK_MLX_DEFAULT)
|
||||
DPDK_MLX5_COMMON_PMD ?= $(DPDK_MLX_DEFAULT)
|
||||
# Debug or release
|
||||
|
||||
DPDK_BUILD_TYPE:=release
|
||||
@ -52,12 +42,10 @@ endif
|
||||
DPDK_DRIVERS_DISABLED := baseband/\*, \
|
||||
bus/dpaa, \
|
||||
bus/ifpga, \
|
||||
common/cnxk, \
|
||||
compress/isal, \
|
||||
compress/octeontx, \
|
||||
compress/zlib, \
|
||||
crypto/ccp, \
|
||||
crypto/cnxk, \
|
||||
crypto/dpaa_sec, \
|
||||
crypto/openssl, \
|
||||
crypto/aesni_mb, \
|
||||
@ -67,11 +55,9 @@ DPDK_DRIVERS_DISABLED := baseband/\*, \
|
||||
crypto/zuc, \
|
||||
event/\*, \
|
||||
mempool/dpaa, \
|
||||
mempool/cnxk, \
|
||||
net/af_packet, \
|
||||
net/bnx2x, \
|
||||
net/bonding, \
|
||||
net/cnxk, \
|
||||
net/ipn3ke, \
|
||||
net/liquidio, \
|
||||
net/pcap, \
|
||||
@ -87,7 +73,6 @@ DPDK_LIBS_DISABLED := acl, \
|
||||
bitratestats, \
|
||||
bpf, \
|
||||
cfgfile, \
|
||||
cnxk, \
|
||||
distributor, \
|
||||
efd, \
|
||||
fib, \
|
||||
@ -137,19 +122,14 @@ endif
|
||||
DPDK_DRIVERS_DISABLED := $(shell echo $(DPDK_DRIVERS_DISABLED) | tr -d '\\\t ')
|
||||
DPDK_LIBS_DISABLED := $(shell echo $(DPDK_LIBS_DISABLED) | tr -d '\\\t ')
|
||||
|
||||
SED=sed
|
||||
ifeq ($shell(uname), FreeBSD)
|
||||
SED=gsed
|
||||
endif
|
||||
|
||||
HASH := \#
|
||||
# post-meson-setup snippet to alter rte_build_config.h
|
||||
define dpdk_config
|
||||
if grep -q RTE_$(1) $(dpdk_src_dir)/config/rte_config.h ; then \
|
||||
$(SED) -i -e 's/$(HASH)define RTE_$(1).*/$(HASH)define RTE_$(1) $(DPDK_$(1))/' \
|
||||
sed -i -e 's/$(HASH)define RTE_$(1).*/$(HASH)define RTE_$(1) $(DPDK_$(1))/' \
|
||||
$(dpdk_src_dir)/config/rte_config.h; \
|
||||
elif grep -q RTE_$(1) $(dpdk_build_dir)/rte_build_config.h ; then \
|
||||
$(SED) -i -e 's/$(HASH)define RTE_$(1).*/$(HASH)define RTE_$(1) $(DPDK_$(1))/' \
|
||||
sed -i -e 's/$(HASH)define RTE_$(1).*/$(HASH)define RTE_$(1) $(DPDK_$(1))/' \
|
||||
$(dpdk_build_dir)/rte_build_config.h; \
|
||||
else \
|
||||
echo '$(HASH)define RTE_$(1) $(DPDK_$(1))' \
|
||||
@ -165,7 +145,7 @@ if [[ "$(DPDK_$(1))" == "y" ]]; then \
|
||||
>> $(dpdk_build_dir)/rte_build_config.h ; \
|
||||
fi; \
|
||||
elif [[ "$(DPDK_$(1))" == "n" ]]; then \
|
||||
$(SED) -i '/$(HASH)define RTE_$(1) .*/d' $(dpdk_build_dir)/rte_build_config.h \
|
||||
sed -i '/$(HASH)define RTE_$(1) .*/d' $(dpdk_build_dir)/rte_build_config.h \
|
||||
$(dpdk_src_dir)/config/rte_config.h ; \
|
||||
fi
|
||||
endef
|
||||
@ -175,26 +155,23 @@ DPDK_MESON_ARGS = \
|
||||
--libdir lib \
|
||||
--prefix $(dpdk_install_dir) \
|
||||
-Dtests=false \
|
||||
-Denable_driver_sdk=true \
|
||||
"-Ddisable_drivers=$(DPDK_DRIVERS_DISABLED)" \
|
||||
"-Ddisable_libs=$(DPDK_LIBS_DISABLED)" \
|
||||
-Db_pie=true \
|
||||
-Dmachine=$(DPDK_MACHINE) \
|
||||
--buildtype=$(DPDK_BUILD_TYPE) \
|
||||
-Denable_kmods=false \
|
||||
${DPDK_MLX_CONFIG_FLAG}
|
||||
|
||||
PIP_DOWNLOAD_DIR = $(CURDIR)/downloads/
|
||||
|
||||
define dpdk_config_cmds
|
||||
cd $(dpdk_build_dir) && \
|
||||
echo "DPDK_MLX_DEFAULT=$(DPDK_MLX_DEFAULT)" > ../../../dpdk_mlx_default.sh && \
|
||||
rm -rf ../dpdk-meson-venv && \
|
||||
mkdir -p ../dpdk-meson-venv && \
|
||||
python3 -m venv ../dpdk-meson-venv && \
|
||||
source ../dpdk-meson-venv/bin/activate && \
|
||||
(if ! ls $(PIP_DOWNLOAD_DIR)meson* ; then pip3 download -d $(PIP_DOWNLOAD_DIR) -f $(DL_CACHE_DIR) meson==0.55.3 setuptools wheel pyelftools; fi) && \
|
||||
pip3 install --no-index --find-links=$(PIP_DOWNLOAD_DIR) meson==0.55.3 pyelftools && \
|
||||
(if ! ls $(PIP_DOWNLOAD_DIR)meson* ; then pip3 download -d $(PIP_DOWNLOAD_DIR) -f $(DL_CACHE_DIR) meson==0.55 setuptools wheel pyelftools; fi) && \
|
||||
pip3 install --no-index --find-links=$(PIP_DOWNLOAD_DIR) meson==0.55 pyelftools && \
|
||||
PKG_CONFIG_PATH=$(dpdk_install_dir)/lib/pkgconfig meson setup $(dpdk_src_dir) \
|
||||
$(dpdk_build_dir) \
|
||||
$(DPDK_MESON_ARGS) \
|
||||
|
30
build/external/packages/ipsec-mb.mk
vendored
30
build/external/packages/ipsec-mb.mk
vendored
@ -11,21 +11,17 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ipsec-mb_version := 1.5
|
||||
ipsec-mb_patch_version := 0
|
||||
ipsec-mb_version_str := $(ipsec-mb_version).$(ipsec-mb_patch_version)
|
||||
ipsec-mb_version := 1.1
|
||||
ipsec-mb_tarball := v$(ipsec-mb_version).tar.gz
|
||||
ipsec-mb_tarball_md5sum_0.54 := 258941f7ba90c275fcf9d19c622d2d21
|
||||
ipsec-mb_tarball_md5sum_0.55 := deca674bca7ae2282890e1fa7f953609
|
||||
ipsec-mb_tarball_md5sum_1.0 := 906e701937751e761671dc83a41cff65
|
||||
ipsec-mb_tarball_md5sum_1.1 := 3916471d3713d27e42473cb6af9c65e5
|
||||
ipsec-mb_tarball_md5sum_1.2 := f551d9c208893a436c1f5c146a615bd6
|
||||
ipsec-mb_tarball_md5sum_1.3 := d8692db9efe32a263b61f12ac0dca950
|
||||
ipsec-mb_tarball_md5sum_1.4 := fddba2611f822296ddd82d1c31d22b24
|
||||
ipsec-mb_tarball_md5sum_1.5 := f18680f8dd43208a15a19a494423bdb9
|
||||
|
||||
ipsec-mb_tarball_md5sum := $(ipsec-mb_tarball_md5sum_$(ipsec-mb_version))
|
||||
ipsec-mb_tarball_strip_dirs := 1
|
||||
ipsec-mb_url := http://github.com/intel/intel-ipsec-mb/archive/$(ipsec-mb_tarball)
|
||||
ipsec-mb_system_header := $(wildcard /usr/include/intel-ipsec-mb.h)
|
||||
ipsec-mb_url := http://github.com/01org/intel-ipsec-mb/archive/$(ipsec-mb_tarball)
|
||||
ipsec-mb_depends := nasm
|
||||
|
||||
define ipsec-mb_config_cmds
|
||||
@true
|
||||
@ -38,25 +34,11 @@ define ipsec-mb_build_cmds
|
||||
SAFE_LOOKUP=n \
|
||||
SAFE_DATA=n \
|
||||
PREFIX=$(ipsec-mb_install_dir) \
|
||||
NASM=$(ipsec-mb_install_dir)/bin/nasm \
|
||||
EXTRA_CFLAGS="-g -msse4.2" > $(ipsec-mb_build_log)
|
||||
endef
|
||||
|
||||
ifneq ($(ipsec-mb_system_header), )
|
||||
ipsec-mb_system_ver_str := $(shell awk '/^#define\s+IMB_VERSION_STR/ { print $$3 }' \
|
||||
$(ipsec-mb_system_header))
|
||||
endif
|
||||
|
||||
define ipsec-mb_install_cmds
|
||||
if [[ -n "$(ipsec-mb_system_header)" ]]; then \
|
||||
if [[ "$(ipsec-mb_system_ver_str)" != "$(ipsec-mb_version_str)" ]]; then \
|
||||
echo "Intel-ipsec-mb build Error: System installed Intel IPsec-mb lib \
|
||||
version mismatch with target version, \
|
||||
expecting $(ipsec-mb_version_str), \
|
||||
but system has $(ipsec-mb_system_ver_str) \
|
||||
please align/remove system installed $(ipsec-mb_system_header) before building."; \
|
||||
exit 1; \
|
||||
fi \
|
||||
fi
|
||||
@mkdir -p $(ipsec-mb_install_dir)/include
|
||||
@mkdir -p $(ipsec-mb_install_dir)/lib
|
||||
@cp $(ipsec-mb_src_dir)/lib/intel-ipsec-mb.h $(ipsec-mb_install_dir)/include
|
||||
|
58
build/external/packages/libbpf.mk
vendored
Normal file
58
build/external/packages/libbpf.mk
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
# Copyright (c) 2018 Cisco and/or its affiliates.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at:
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
LIBBPF_DEBUG?=n
|
||||
|
||||
libbpf_version := 0.5.0
|
||||
libbpf_tarball := v$(libbpf_version).tar.gz
|
||||
libbpf_tarball_md5sum_0.2 := cd0f82d76a9830c1e66b1a249393d5a8
|
||||
libbpf_tarball_md5sum_0.5.0:= ba0a514d2775f033c24a6fec37e587bc
|
||||
libbpf_tarball_md5sum := $(libbpf_tarball_md5sum_$(libbpf_version))
|
||||
libbpf_tarball_strip_dirs := 1
|
||||
libbpf_url := https://github.com/libbpf/libbpf/archive/$(libbpf_tarball)
|
||||
|
||||
LIBBPF_CFLAGS:=-g -Werror -Wall -fPIC -fvisibility=hidden
|
||||
ifeq ($(LIBBPF_DEBUG),y)
|
||||
LIBBPF_CFLAGS+= -O0
|
||||
else
|
||||
LIBBPF_CFLAGS+= -O2
|
||||
endif
|
||||
|
||||
# check for libelf, zlib and kernel if_xdp.h presence
|
||||
LIBBPF_DEPS_CHECK:="\#include <linux/if_xdp.h>\\n\#include <gelf.h>\\n\#include <zlib.h>\\nint main(void){return 0;}"
|
||||
LIBBPF_DEPS_CHECK:=$(shell echo -e $(LIBBPF_DEPS_CHECK) | $(CC) -xc -lelf -lz -o /dev/null - > /dev/null 2>&1)
|
||||
LIBBPF_DEPS_CHECK:=$(.SHELLSTATUS)
|
||||
|
||||
define libbpf_config_cmds
|
||||
@true
|
||||
endef
|
||||
|
||||
define libbpf_build_cmds__
|
||||
BUILD_STATIC_ONLY=y OBJDIR='$(libbpf_build_dir)' PREFIX='' DESTDIR='$(libbpf_install_dir)' CFLAGS='$(LIBBPF_CFLAGS)' make -C '$(libbpf_src_dir)/src' $(1) > $(2)
|
||||
endef
|
||||
|
||||
define libbpf_build_cmds
|
||||
$(call libbpf_build_cmds__,,$(libbpf_build_log))
|
||||
endef
|
||||
|
||||
define libbpf_install_cmds
|
||||
$(call libbpf_build_cmds__,install,$(libbpf_install_log))
|
||||
endef
|
||||
|
||||
ifneq ($(LIBBPF_DEPS_CHECK),0)
|
||||
$(warning "Missing libbpf dependencies. libbpf will be skipped.")
|
||||
libbpf-install:
|
||||
@true
|
||||
else
|
||||
$(eval $(call package,libbpf))
|
||||
endif
|
@ -1,5 +1,4 @@
|
||||
|
||||
# Copyright (c) 2022 Cisco and/or its affiliates.
|
||||
# Copyright (c) 2018 Cisco and/or its affiliates.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at:
|
||||
@ -12,14 +11,11 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
add_vpp_plugin(fateshare
|
||||
SOURCES
|
||||
fateshare.c
|
||||
fateshare.h
|
||||
)
|
||||
|
||||
add_vpp_executable(vpp_fateshare_monitor
|
||||
SOURCES vpp_fateshare_monitor.c
|
||||
LINK_LIBRARIES vppinfra
|
||||
)
|
||||
nasm_version := 2.14.02
|
||||
nasm_tarball := nasm-$(nasm_version).tar.xz
|
||||
nasm_tarball_md5sum := 6390bd67b07ff1df9fe628b6929c0353
|
||||
nasm_tarball_strip_dirs := 1
|
||||
nasm_url := https://ftp.osuosl.org/pub/blfs/conglomeration/nasm/$(nasm_tarball)
|
||||
nasm_cflags := -Wno-implicit-fallthrough -std=c11
|
||||
|
||||
$(eval $(call package,nasm))
|
26
build/external/packages/octeon-roc.mk
vendored
26
build/external/packages/octeon-roc.mk
vendored
@ -1,26 +0,0 @@
|
||||
# Copyright (c) 2023 Marvell.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# https://spdx.org/licenses/Apache-2.0.html
|
||||
|
||||
octeon-roc_version := 0.5
|
||||
octeon-roc_tarball := v$(octeon-roc_version).tar.gz
|
||||
octeon-roc_tarball_md5sum := 76bc56c84935da944bbf340fe5283ef0
|
||||
|
||||
octeon-roc_tarball_strip_dirs := 1
|
||||
octeon-roc_url := https://github.com/MarvellEmbeddedProcessors/marvell-octeon-roc/archive/refs/tags/$(octeon-roc_tarball)
|
||||
|
||||
define octeon-roc_config_cmds
|
||||
@true
|
||||
endef
|
||||
|
||||
define octeon-roc_build_cmds
|
||||
@cd ${octeon-roc_src_dir} && rm -f $(octeon-roc_build_log) && $(CMAKE) ${octeon-roc_src_dir} -DCMAKE_INSTALL_PREFIX='$(octeon-roc_install_dir)' >> $(octeon-roc_build_log)
|
||||
@$(MAKE) -C ${octeon-roc_src_dir} >> $(octeon-roc_build_log)
|
||||
endef
|
||||
|
||||
define octeon-roc_install_cmds
|
||||
@$(MAKE) -C ${octeon-roc_src_dir} install >> $(octeon-roc_install_log)
|
||||
endef
|
||||
|
||||
$(eval $(call package,octeon-roc))
|
||||
|
18
build/external/packages/quicly.mk
vendored
18
build/external/packages/quicly.mk
vendored
@ -11,9 +11,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
quicly_version := 0.1.4-vpp
|
||||
quicly_version := 0.1.3-vpp
|
||||
quicly_tarball := quicly_$(quicly_version).tar.gz
|
||||
quicly_tarball_md5sum := 5419a0f340c5572bcf682c08acc84c77
|
||||
quicly_tarball_md5sum := 195f156f311458f1bd4540765e62dd27
|
||||
quicly_tarball_strip_dirs := 1
|
||||
quicly_url := https://github.com/vpp-quic/quicly/releases/download/v$(quicly_version)/quicly_$(quicly_version).tar.gz
|
||||
|
||||
@ -21,17 +21,16 @@ picotls_build_dir := $(B)/build-picotls
|
||||
|
||||
define quicly_build_cmds
|
||||
@cd $(quicly_build_dir) && \
|
||||
rm -f $(quicly_build_log) && \
|
||||
$(CMAKE) -DWITH_DTRACE=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
|
||||
$(quicly_src_dir) >> $(quicly_build_log)
|
||||
@$(MAKE) quicly $(MAKE_ARGS) -C $(quicly_build_dir) >> $(quicly_build_log)
|
||||
$(quicly_src_dir) > $(quicly_build_log)
|
||||
@$(MAKE) quicly $(MAKE_ARGS) -C $(quicly_build_dir) > $(quicly_build_log)
|
||||
|
||||
@mkdir -p $(picotls_build_dir)
|
||||
@cd $(picotls_build_dir) && \
|
||||
$(CMAKE) -DWITH_DTRACE=OFF -DCMAKE_INSTALL_PREFIX:PATH=$(quicly_install_dir) \
|
||||
$(quicly_src_dir)/deps/picotls >> $(quicly_build_log)
|
||||
@$(MAKE) picotls-core picotls-openssl $(MAKE_ARGS) -C $(picotls_build_dir) >> $(quicly_build_log)
|
||||
$(quicly_src_dir)/deps/picotls > $(quicly_build_log)
|
||||
@$(MAKE) picotls-core picotls-openssl $(MAKE_ARGS) -C $(picotls_build_dir) > $(quicly_build_log)
|
||||
endef
|
||||
|
||||
define quicly_config_cmds
|
||||
@ -39,9 +38,8 @@ define quicly_config_cmds
|
||||
endef
|
||||
|
||||
define quicly_install_cmds
|
||||
@rm -f $(quicly_install_log)
|
||||
@$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) install >> $(quicly_install_log)
|
||||
@$(MAKE) $(MAKE_ARGS) -C $(picotls_build_dir) install >> $(quicly_install_log)
|
||||
@$(MAKE) $(MAKE_ARGS) -C $(quicly_build_dir) install > $(quicly_install_log)
|
||||
@$(MAKE) $(MAKE_ARGS) -C $(picotls_build_dir) install > $(quicly_install_log)
|
||||
endef
|
||||
|
||||
|
||||
|
35
build/external/packages/rdma-core.mk
vendored
35
build/external/packages/rdma-core.mk
vendored
@ -13,20 +13,10 @@
|
||||
|
||||
RDMA_CORE_DEBUG?=n
|
||||
|
||||
# NOTE: When updating the rdma-core version in conjunction with an update of the
|
||||
# dpdk version, please update ../mlx_rdma_dpdk_matrix.txt to include the
|
||||
# updated version matrix with the dpdk and rdma-core version.
|
||||
#
|
||||
# Also, please verify that the DPDK RDMA driver is built into the dpdk plugin
|
||||
# as follows:
|
||||
# 1. from workspace root directory, 'make -C build/external build-deb'
|
||||
# 2. Verify that the file build/external/dpdk_mlx_default.sh was generated
|
||||
# and contains 'DPDK_MLX_DEFAULT=y'
|
||||
#
|
||||
rdma-core_version := 51.0
|
||||
rdma-core_version := 38.0
|
||||
rdma-core_tarball := rdma-core-$(rdma-core_version).tar.gz
|
||||
rdma-core_tarball_md5sum_49.0 := 9fe3909f19c7e0276c9e546411bbb49c
|
||||
rdma-core_tarball_md5sum_51.0 := ed95d79f782ea00bd7233d453abd60b3
|
||||
rdma-core_tarball_md5sum_35.0 := 85afb89ec536ef229c0fef6cb87e8665
|
||||
rdma-core_tarball_md5sum_38.0 := 44e14dd392ac139a0d452148eb0a0514
|
||||
rdma-core_tarball_md5sum := $(rdma-core_tarball_md5sum_$(rdma-core_version))
|
||||
rdma-core_tarball_strip_dirs := 1
|
||||
rdma-core_url := http://github.com/linux-rdma/rdma-core/releases/download/v$(rdma-core_version)/$(rdma-core_tarball)
|
||||
@ -42,16 +32,27 @@ define rdma-core_config_cmds
|
||||
-DENABLE_STATIC=1 -DENABLE_RESOLVE_NEIGH=0 -DNO_PYVERBS=1 -DENABLE_VALGRIND=0\
|
||||
-DCMAKE_BUILD_TYPE=$(RDMA_BUILD_TYPE) -DCMAKE_INSTALL_PREFIX=$(rdma-core_install_dir) \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCMAKE_INSTALL_RUNDIR:PATH=/run \
|
||||
-DCMAKE_C_FLAGS='-fPIC' -DNO_MAN_PAGES=ON | tee $(rdma-core_config_log)
|
||||
-DCMAKE_C_FLAGS='-fPIC -fvisibility=hidden' > $(rdma-core_config_log)
|
||||
endef
|
||||
|
||||
define rdma-core_build_cmds
|
||||
$(CMAKE) --build $(rdma-core_build_dir) | tee $(rdma-core_build_log)
|
||||
$(CMAKE) --build $(rdma-core_build_dir) -- libccan.a libibverbs.a librdma_util.a libmlx5.a libmlx4.a > $(rdma-core_build_log)
|
||||
sed 's/^Libs.private:.*/Libs.private: -lmlx4 -lmlx5 -libverbs -lrdma_util -lccan -lpthread/' -i $(rdma-core_build_dir)/lib/pkgconfig/libibverbs.pc >> $(rdma-core_build_log)
|
||||
endef
|
||||
|
||||
define rdma-core_install_cmds
|
||||
$(CMAKE) --install $(rdma-core_build_dir) | tee $(rdma-core_install_log)
|
||||
mkdir -p $(rdma-core_install_dir)/lib/pkgconfig
|
||||
cp -avL $(rdma-core_build_dir)/include $(rdma-core_install_dir) > $(rdma-core_install_log)
|
||||
cp -avL $(rdma-core_build_dir)/lib/pkgconfig/libibverbs.pc \
|
||||
$(rdma-core_build_dir)/lib/pkgconfig/libmlx5.pc \
|
||||
$(rdma-core_build_dir)/lib/pkgconfig/libmlx4.pc \
|
||||
$(rdma-core_install_dir)/lib/pkgconfig >> $(rdma-core_install_log)
|
||||
cp -avL $(rdma-core_build_dir)/lib/statics/libibverbs.a \
|
||||
$(rdma-core_build_dir)/lib/statics/libmlx5.a \
|
||||
$(rdma-core_build_dir)/lib/statics/libmlx4.a \
|
||||
$(rdma-core_build_dir)/util/librdma_util.a \
|
||||
$(rdma-core_build_dir)/ccan/libccan.a \
|
||||
$(rdma-core_install_dir)/lib >> $(rdma-core_install_log)
|
||||
endef
|
||||
|
||||
$(eval $(call package,rdma-core))
|
||||
|
38
build/external/packages/xdp-tools.mk
vendored
38
build/external/packages/xdp-tools.mk
vendored
@ -1,38 +0,0 @@
|
||||
# Copyright (c) 2023 Intel and/or its affiliates.
|
||||
# Copyright (c) 2018 Cisco and/or its affiliates.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at:
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
xdp-tools_version := 1.2.9
|
||||
xdp-tools_tarball := xdp-tools-$(xdp-tools_version).tar.gz
|
||||
xdp-tools_tarball_md5sum_1.2.9:= 6e4a49ceea8354bb7bb3b55990e9aed7
|
||||
xdp-tools_tarball_md5sum := $(xdp-tools_tarball_md5sum_$(xdp-tools_version))
|
||||
xdp-tools_tarball_strip_dirs := 1
|
||||
xdp-tools_url := https://github.com/xdp-project/xdp-tools/releases/download/v$(xdp-tools_version)/$(xdp-tools_tarball)
|
||||
|
||||
define xdp-tools_config_cmds
|
||||
@true
|
||||
endef
|
||||
|
||||
define xdp-tools_build_cmds
|
||||
@cd ${xdp-tools_src_dir} && make V=1 BUILD_STATIC_ONLY=y > $(xdp-tools_build_log)
|
||||
endef
|
||||
|
||||
define xdp-tools_install_cmds
|
||||
@rm -f $(xdp-tools_install_log)
|
||||
@cd ${xdp-tools_src_dir} && \
|
||||
make -C lib/libbpf/src install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log)
|
||||
@cd ${xdp-tools_src_dir} && \
|
||||
make libxdp_install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log)
|
||||
endef
|
||||
|
||||
$(eval $(call package,xdp-tools))
|
@ -1,137 +0,0 @@
|
||||
From f4192afd7712a8d6be1e80af7478a12caaaa8917 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Smith <mgsmith@netgate.com>
|
||||
Date: Fri, 25 Feb 2022 16:15:40 -0600
|
||||
Subject: [PATCH] net/igc: Add device ID for i226v
|
||||
|
||||
Add the device ID 0x125C in order to enable the i226v.
|
||||
Add phy ID for the i226 and allow that ID anywhere the phy ID for the
|
||||
i225 was allowed.
|
||||
---
|
||||
drivers/net/igc/base/igc_api.c | 1 +
|
||||
drivers/net/igc/base/igc_defines.h | 1 +
|
||||
drivers/net/igc/base/igc_hw.h | 1 +
|
||||
drivers/net/igc/base/igc_i225.c | 1 +
|
||||
drivers/net/igc/base/igc_phy.c | 11 ++++++-----
|
||||
drivers/net/igc/igc_ethdev.c | 1 +
|
||||
6 files changed, 11 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/drivers/net/igc/base/igc_api.c b/drivers/net/igc/base/igc_api.c
|
||||
index 2f8c0753cb..da51ef2d59 100644
|
||||
--- a/drivers/net/igc/base/igc_api.c
|
||||
+++ b/drivers/net/igc/base/igc_api.c
|
||||
@@ -888,6 +888,7 @@ s32 igc_set_mac_type(struct igc_hw *hw)
|
||||
case IGC_DEV_ID_I225_I:
|
||||
case IGC_DEV_ID_I220_V:
|
||||
case IGC_DEV_ID_I225_BLANK_NVM:
|
||||
+ case IGC_DEV_ID_I226_V:
|
||||
mac->type = igc_i225;
|
||||
break;
|
||||
case IGC_DEV_ID_I350_VF:
|
||||
diff --git a/drivers/net/igc/base/igc_defines.h b/drivers/net/igc/base/igc_defines.h
|
||||
index 30a41300f5..767587a171 100644
|
||||
--- a/drivers/net/igc/base/igc_defines.h
|
||||
+++ b/drivers/net/igc/base/igc_defines.h
|
||||
@@ -1351,6 +1351,7 @@
|
||||
#define IGP04IGC_E_PHY_ID 0x02A80391
|
||||
#define M88_VENDOR 0x0141
|
||||
#define I225_I_PHY_ID 0x67C9DC00
|
||||
+#define I226_I_PHY_ID 0x67C9DC10
|
||||
|
||||
/* M88E1000 Specific Registers */
|
||||
#define M88IGC_PHY_SPEC_CTRL 0x10 /* PHY Specific Control Reg */
|
||||
diff --git a/drivers/net/igc/base/igc_hw.h b/drivers/net/igc/base/igc_hw.h
|
||||
index be38fafa5f..686fb721af 100644
|
||||
--- a/drivers/net/igc/base/igc_hw.h
|
||||
+++ b/drivers/net/igc/base/igc_hw.h
|
||||
@@ -164,6 +164,7 @@ struct igc_hw;
|
||||
#define IGC_DEV_ID_I225_V 0x15F3
|
||||
#define IGC_DEV_ID_I225_K 0x3100
|
||||
#define IGC_DEV_ID_I225_I 0x15F8
|
||||
+#define IGC_DEV_ID_I226_V 0x125C
|
||||
#define IGC_DEV_ID_I220_V 0x15F7
|
||||
#define IGC_DEV_ID_I225_BLANK_NVM 0x15FD
|
||||
#define IGC_DEV_ID_I354_BACKPLANE_1GBPS 0x1F40
|
||||
diff --git a/drivers/net/igc/base/igc_i225.c b/drivers/net/igc/base/igc_i225.c
|
||||
index 060b2f8f93..8c078029f7 100644
|
||||
--- a/drivers/net/igc/base/igc_i225.c
|
||||
+++ b/drivers/net/igc/base/igc_i225.c
|
||||
@@ -176,6 +176,7 @@ static s32 igc_init_phy_params_i225(struct igc_hw *hw)
|
||||
/* Verify phy id and set remaining function pointers */
|
||||
switch (phy->id) {
|
||||
case I225_I_PHY_ID:
|
||||
+ case I226_I_PHY_ID:
|
||||
phy->type = igc_phy_i225;
|
||||
phy->ops.set_d0_lplu_state = igc_set_d0_lplu_state_i225;
|
||||
phy->ops.set_d3_lplu_state = igc_set_d3_lplu_state_i225;
|
||||
diff --git a/drivers/net/igc/base/igc_phy.c b/drivers/net/igc/base/igc_phy.c
|
||||
index 43bbe69bca..d46a6b3555 100644
|
||||
--- a/drivers/net/igc/base/igc_phy.c
|
||||
+++ b/drivers/net/igc/base/igc_phy.c
|
||||
@@ -1474,8 +1474,7 @@ s32 igc_phy_setup_autoneg(struct igc_hw *hw)
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
- if ((phy->autoneg_mask & ADVERTISE_2500_FULL) &&
|
||||
- hw->phy.id == I225_I_PHY_ID) {
|
||||
+ if (phy->autoneg_mask & ADVERTISE_2500_FULL) {
|
||||
/* Read the MULTI GBT AN Control Register - reg 7.32 */
|
||||
ret_val = phy->ops.read_reg(hw, (STANDARD_AN_REG_MASK <<
|
||||
MMD_DEVADDR_SHIFT) |
|
||||
@@ -1615,8 +1614,7 @@ s32 igc_phy_setup_autoneg(struct igc_hw *hw)
|
||||
ret_val = phy->ops.write_reg(hw, PHY_1000T_CTRL,
|
||||
mii_1000t_ctrl_reg);
|
||||
|
||||
- if ((phy->autoneg_mask & ADVERTISE_2500_FULL) &&
|
||||
- hw->phy.id == I225_I_PHY_ID)
|
||||
+ if (phy->autoneg_mask & ADVERTISE_2500_FULL)
|
||||
ret_val = phy->ops.write_reg(hw,
|
||||
(STANDARD_AN_REG_MASK <<
|
||||
MMD_DEVADDR_SHIFT) |
|
||||
@@ -1882,6 +1880,7 @@ s32 igc_phy_force_speed_duplex_m88(struct igc_hw *hw)
|
||||
/* fall-through */
|
||||
case I225_I_PHY_ID:
|
||||
/* fall-through */
|
||||
+ case I226_I_PHY_ID:
|
||||
reset_dsp = false;
|
||||
break;
|
||||
default:
|
||||
@@ -1923,7 +1922,7 @@ s32 igc_phy_force_speed_duplex_m88(struct igc_hw *hw)
|
||||
return IGC_SUCCESS;
|
||||
if (hw->phy.id == I210_I_PHY_ID)
|
||||
return IGC_SUCCESS;
|
||||
- if (hw->phy.id == I225_I_PHY_ID)
|
||||
+ if (hw->phy.type == igc_phy_i225)
|
||||
return IGC_SUCCESS;
|
||||
if (hw->phy.id == M88E1543_E_PHY_ID || hw->phy.id == M88E1512_E_PHY_ID)
|
||||
return IGC_SUCCESS;
|
||||
@@ -2480,6 +2479,7 @@ s32 igc_get_cable_length_m88_gen2(struct igc_hw *hw)
|
||||
phy->cable_length = phy_data / (is_cm ? 100 : 1);
|
||||
break;
|
||||
case I225_I_PHY_ID:
|
||||
+ case I226_I_PHY_ID:
|
||||
if (ret_val)
|
||||
return ret_val;
|
||||
/* TODO - complete with Foxville data */
|
||||
@@ -3064,6 +3064,7 @@ enum igc_phy_type igc_get_phy_type_from_id(u32 phy_id)
|
||||
phy_type = igc_phy_i210;
|
||||
break;
|
||||
case I225_I_PHY_ID:
|
||||
+ case I226_I_PHY_ID:
|
||||
phy_type = igc_phy_i225;
|
||||
break;
|
||||
default:
|
||||
diff --git a/drivers/net/igc/igc_ethdev.c b/drivers/net/igc/igc_ethdev.c
|
||||
index a1f1a9772b..0dd3a212d7 100644
|
||||
--- a/drivers/net/igc/igc_ethdev.c
|
||||
+++ b/drivers/net/igc/igc_ethdev.c
|
||||
@@ -97,6 +97,7 @@ static const struct rte_pci_id pci_id_igc_map[] = {
|
||||
{ RTE_PCI_DEVICE(IGC_INTEL_VENDOR_ID, IGC_DEV_ID_I225_V) },
|
||||
{ RTE_PCI_DEVICE(IGC_INTEL_VENDOR_ID, IGC_DEV_ID_I225_I) },
|
||||
{ RTE_PCI_DEVICE(IGC_INTEL_VENDOR_ID, IGC_DEV_ID_I225_K) },
|
||||
+ { RTE_PCI_DEVICE(IGC_INTEL_VENDOR_ID, IGC_DEV_ID_I226_V) },
|
||||
{ .vendor_id = 0, /* sentinel */ },
|
||||
};
|
||||
|
||||
--
|
||||
2.30.1 (Apple Git-130)
|
||||
|
@ -1,76 +0,0 @@
|
||||
From 16449a64d38c7f4b880601ddf3d34087da5e8577 Mon Sep 17 00:00:00 2001
|
||||
From: Xiaoming Jiang <jiangxiaoming@outlook.com>
|
||||
Date: Thu, 9 Jun 2022 06:15:51 +0000
|
||||
Subject: [PATCH 1/1] bus/vmbus: add support allow/block scan mode
|
||||
|
||||
---
|
||||
drivers/bus/vmbus/vmbus_common.c | 32 +++++++++++++++++++++++++++++---
|
||||
1 file changed, 29 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/drivers/bus/vmbus/vmbus_common.c b/drivers/bus/vmbus/vmbus_common.c
|
||||
index 3677273..47edacb 100644
|
||||
--- a/drivers/bus/vmbus/vmbus_common.c
|
||||
+++ b/drivers/bus/vmbus/vmbus_common.c
|
||||
@@ -102,7 +102,12 @@ vmbus_probe_one_driver(struct rte_vmbus_driver *dr,
|
||||
VMBUS_LOG(INFO, "VMBUS device %s on NUMA socket %i",
|
||||
guid, dev->device.numa_node);
|
||||
|
||||
- /* TODO add block/allow logic */
|
||||
+ /* no initialization when marked as blocked, return without error */
|
||||
+ if (dev->device.devargs != NULL &&
|
||||
+ dev->device.devargs->policy == RTE_DEV_BLOCKED) {
|
||||
+ RTE_LOG(INFO, EAL, " Device is blocked, not initializing\n");
|
||||
+ return 1;
|
||||
+ }
|
||||
|
||||
/* map resources for device */
|
||||
ret = rte_vmbus_map_device(dev);
|
||||
@@ -134,7 +139,7 @@ vmbus_probe_one_driver(struct rte_vmbus_driver *dr,
|
||||
|
||||
/*
|
||||
* If device class GUID matches, call the probe function of
|
||||
- * register drivers for the vmbus device.
|
||||
+ * registere drivers for the vmbus device.
|
||||
* Return -1 if initialization failed,
|
||||
* and 1 if no driver found for this device.
|
||||
*/
|
||||
@@ -163,6 +168,25 @@ vmbus_probe_all_drivers(struct rte_vmbus_device *dev)
|
||||
return 1;
|
||||
}
|
||||
|
||||
+static bool
|
||||
+rte_vmbus_ignore_device(struct rte_vmbus_device *dev)
|
||||
+{
|
||||
+ struct rte_devargs *devargs = vmbus_devargs_lookup(dev);
|
||||
+
|
||||
+ switch (rte_vmbus_bus.bus.conf.scan_mode) {
|
||||
+ case RTE_BUS_SCAN_ALLOWLIST:
|
||||
+ if (devargs && devargs->policy == RTE_DEV_ALLOWED)
|
||||
+ return false;
|
||||
+ break;
|
||||
+ case RTE_BUS_SCAN_UNDEFINED:
|
||||
+ case RTE_BUS_SCAN_BLOCKLIST:
|
||||
+ if (devargs == NULL || devargs->policy != RTE_DEV_BLOCKED)
|
||||
+ return false;
|
||||
+ break;
|
||||
+ }
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
/*
|
||||
* Scan the vmbus, and call the devinit() function for
|
||||
* all registered drivers that have a matching entry in its id_table
|
||||
@@ -180,7 +204,9 @@ rte_vmbus_probe(void)
|
||||
|
||||
rte_uuid_unparse(dev->device_id, ubuf, sizeof(ubuf));
|
||||
|
||||
- /* TODO: add allowlist/blocklist */
|
||||
+ if (rte_vmbus_ignore_device(dev)) {
|
||||
+ continue;
|
||||
+ }
|
||||
|
||||
if (vmbus_probe_all_drivers(dev) < 0) {
|
||||
VMBUS_LOG(NOTICE,
|
||||
--
|
||||
2.32.0
|
||||
|
@ -1,57 +0,0 @@
|
||||
From 013a095d6b348afddceaa5ea710ef6309566dc85 Mon Sep 17 00:00:00 2001
|
||||
From: Kai Ji <kai.ji@intel.com>
|
||||
Date: Fri, 25 Mar 2022 19:22:07 +0800
|
||||
Subject: [PATCH] crypto/qat: fix of cipher offset and length assignment
|
||||
|
||||
This patch fix the cipher offset and length values when convert
|
||||
mbuf to vector chain for QAT build op.
|
||||
|
||||
Fixes: a815a04cea05 ("crypto/qat: support symmetric build op request")
|
||||
|
||||
Signed-off-by: Kai Ji <kai.ji@intel.com>
|
||||
---
|
||||
drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h b/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h
|
||||
index 50a9c5ad5b..dc473e0624 100644
|
||||
--- a/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h
|
||||
+++ b/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h
|
||||
@@ -395,12 +395,12 @@ qat_sym_convert_op_to_vec_chain(struct rte_crypto_op *op,
|
||||
ret = qat_cipher_is_len_in_bits(ctx, op);
|
||||
switch (ret) {
|
||||
case 1:
|
||||
- cipher_len = op->sym->aead.data.length >> 3;
|
||||
- cipher_ofs = op->sym->aead.data.offset >> 3;
|
||||
+ cipher_len = op->sym->cipher.data.length >> 3;
|
||||
+ cipher_ofs = op->sym->cipher.data.offset >> 3;
|
||||
break;
|
||||
case 0:
|
||||
- cipher_len = op->sym->aead.data.length;
|
||||
- cipher_ofs = op->sym->aead.data.offset;
|
||||
+ cipher_len = op->sym->cipher.data.length;
|
||||
+ cipher_ofs = op->sym->cipher.data.offset;
|
||||
break;
|
||||
default:
|
||||
QAT_DP_LOG(ERR,
|
||||
@@ -426,7 +426,6 @@ qat_sym_convert_op_to_vec_chain(struct rte_crypto_op *op,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
- min_ofs = cipher_ofs < auth_ofs ? cipher_ofs : auth_ofs;
|
||||
max_len = RTE_MAX(cipher_ofs + cipher_len, auth_ofs + auth_len);
|
||||
|
||||
/* digest in buffer check. Needed only for wireless algos */
|
||||
@@ -463,7 +462,8 @@ qat_sym_convert_op_to_vec_chain(struct rte_crypto_op *op,
|
||||
ctx->digest_length);
|
||||
}
|
||||
|
||||
- n_src = rte_crypto_mbuf_to_vec(op->sym->m_src, min_ofs, max_len,
|
||||
+ /* Passing 0 as cipher & auth offsets are assigned into ofs later */
|
||||
+ n_src = rte_crypto_mbuf_to_vec(op->sym->m_src, 0, max_len,
|
||||
in_sgl->vec, QAT_SYM_SGL_MAX_NUMBER);
|
||||
if (unlikely(n_src < 0 || n_src > op->sym->m_src->nb_segs)) {
|
||||
op->status = RTE_CRYPTO_OP_STATUS_ERROR;
|
||||
--
|
||||
2.25.1
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,96 +0,0 @@
|
||||
From 794d99b8abeeb401a374489a9e3c629d023c271f Mon Sep 17 00:00:00 2001
|
||||
From: Ting Xu <ting.xu@intel.com>
|
||||
Date: Fri, 4 Mar 2022 07:26:28 +0000
|
||||
Subject: [PATCH v2] net/ice: fix raw flow input pattern value change in FDIR
|
||||
|
||||
When parsing raw flow pattern in FDIR, the input parameter spec and
|
||||
mask are used directly and the original value will be changed. It
|
||||
will cause error if these values are used in other functions. In this
|
||||
patch, temporary variables are created to store the spec and mask.
|
||||
|
||||
Fixes: 25be39cc1760 ("net/ice: enable protocol agnostic flow offloading in FDIR")
|
||||
|
||||
Cc: stable@dpdk.org
|
||||
|
||||
Signed-off-by: Ting Xu <ting.xu@intel.com>
|
||||
---
|
||||
drivers/net/ice/ice_fdir_filter.c | 25 +++++++++++++++++++------
|
||||
1 file changed, 19 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c
|
||||
index 7954c6d8ea..5ff1afac90 100644
|
||||
--- a/drivers/net/ice/ice_fdir_filter.c
|
||||
+++ b/drivers/net/ice/ice_fdir_filter.c
|
||||
@@ -1868,10 +1868,11 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad,
|
||||
break;
|
||||
|
||||
/* convert raw spec & mask from byte string to int */
|
||||
- unsigned char *tmp_spec =
|
||||
+ unsigned char *spec_pattern =
|
||||
(uint8_t *)(uintptr_t)raw_spec->pattern;
|
||||
- unsigned char *tmp_mask =
|
||||
+ unsigned char *mask_pattern =
|
||||
(uint8_t *)(uintptr_t)raw_mask->pattern;
|
||||
+ uint8_t *tmp_spec, *tmp_mask;
|
||||
uint16_t udp_port = 0;
|
||||
uint16_t tmp_val = 0;
|
||||
uint8_t pkt_len = 0;
|
||||
@@ -1883,8 +1884,18 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad,
|
||||
pkt_len)
|
||||
return -rte_errno;
|
||||
|
||||
+ tmp_spec = rte_zmalloc(NULL, pkt_len / 2, 0);
|
||||
+ if (!tmp_spec)
|
||||
+ return -rte_errno;
|
||||
+
|
||||
+ tmp_mask = rte_zmalloc(NULL, pkt_len / 2, 0);
|
||||
+ if (!tmp_mask) {
|
||||
+ rte_free(tmp_spec);
|
||||
+ return -rte_errno;
|
||||
+ }
|
||||
+
|
||||
for (i = 0, j = 0; i < pkt_len; i += 2, j++) {
|
||||
- tmp = tmp_spec[i];
|
||||
+ tmp = spec_pattern[i];
|
||||
if (tmp >= 'a' && tmp <= 'f')
|
||||
tmp_val = tmp - 'a' + 10;
|
||||
if (tmp >= 'A' && tmp <= 'F')
|
||||
@@ -1893,7 +1904,7 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad,
|
||||
tmp_val = tmp - '0';
|
||||
|
||||
tmp_val *= 16;
|
||||
- tmp = tmp_spec[i + 1];
|
||||
+ tmp = spec_pattern[i + 1];
|
||||
if (tmp >= 'a' && tmp <= 'f')
|
||||
tmp_spec[j] = tmp_val + tmp - 'a' + 10;
|
||||
if (tmp >= 'A' && tmp <= 'F')
|
||||
@@ -1901,7 +1912,7 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad,
|
||||
if (tmp >= '0' && tmp <= '9')
|
||||
tmp_spec[j] = tmp_val + tmp - '0';
|
||||
|
||||
- tmp = tmp_mask[i];
|
||||
+ tmp = mask_pattern[i];
|
||||
if (tmp >= 'a' && tmp <= 'f')
|
||||
tmp_val = tmp - 'a' + 10;
|
||||
if (tmp >= 'A' && tmp <= 'F')
|
||||
@@ -1910,7 +1921,7 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad,
|
||||
tmp_val = tmp - '0';
|
||||
|
||||
tmp_val *= 16;
|
||||
- tmp = tmp_mask[i + 1];
|
||||
+ tmp = mask_pattern[i + 1];
|
||||
if (tmp >= 'a' && tmp <= 'f')
|
||||
tmp_mask[j] = tmp_val + tmp - 'a' + 10;
|
||||
if (tmp >= 'A' && tmp <= 'F')
|
||||
@@ -1953,6 +1964,8 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad,
|
||||
|
||||
filter->parser_ena = true;
|
||||
|
||||
+ rte_free(tmp_spec);
|
||||
+ rte_free(tmp_mask);
|
||||
break;
|
||||
}
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
@ -1,54 +0,0 @@
|
||||
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
|
||||
|
@ -1,54 +0,0 @@
|
||||
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
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user