24e1a5e39d
Add support for the RTE_FLOW_ACTION_MODIFY_FIELD to the testpmd. Implement CLI to create the modify_field action and supply all the needed parameters to modify an arbitrary packet field (as well as mark, tag or metadata) with data from another field or immediate value. Example of the flow is the following: flow create 0 egress group 1 pattern eth / ipv4 / udp / end actions modify_field op set dst_type tag dst_level 2 dst_offset 8 src_type gtp_teid src_level 0 src_offset 0 width 16 / end This flow copies 16 bits from the second Tag in the Tags array into the outermost GTP TEID packet header field. 8 bits of the Tag are skipped as indicated by the dst_offset action parameter. op, dst_type, src_type and width are the mandatory parameters to specify. Levels and offset are 0 by default if they are not overridden by a user. The operation can be set, add or sub. Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> |
||
---|---|---|
.ci | ||
.github/workflows | ||
app | ||
buildtools | ||
config | ||
devtools | ||
doc | ||
drivers | ||
examples | ||
kernel | ||
lib | ||
license | ||
usertools | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
ABI_VERSION | ||
MAINTAINERS | ||
Makefile | ||
meson_options.txt | ||
meson.build | ||
README | ||
VERSION |
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org