25be39cc17
Protocol agnostic flow offloading in Flow Director is enabled by this patch based on the Parser Library, using existing rte_flow raw API. Note that the raw flow requires: 1. byte string of raw target packet bits. 2. byte string of mask of target packet. Here is an example: FDIR matching ipv4 dst addr with 1.2.3.4 and redirect to queue 3: flow create 0 ingress pattern raw \ pattern spec \ 00000000000000000000000008004500001400004000401000000000000001020304 \ pattern mask \ 000000000000000000000000000000000000000000000000000000000000ffffffff \ / end actions queue index 3 / mark id 3 / end Note that mask of some key bits (e.g., 0x0800 to indicate ipv4 proto) is optional in our cases. To avoid redundancy, we just omit the mask of 0x0800 (with 0xFFFF) in the mask byte string example. The prefix '0x' for the spec and mask byte (hex) strings are also omitted here. Also update the ice feature list with rte_flow item raw. Signed-off-by: Junfeng Guo <junfeng.guo@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com> |
||
---|---|---|
.. | ||
bbdevs | ||
compressdevs | ||
contributing | ||
cryptodevs | ||
dmadevs | ||
eventdevs | ||
faq | ||
freebsd_gsg | ||
howto | ||
linux_gsg | ||
mempool | ||
nics | ||
platform | ||
prog_guide | ||
rawdevs | ||
regexdevs | ||
rel_notes | ||
sample_app_ug | ||
testpmd_app_ug | ||
tools | ||
vdpadevs | ||
windows_gsg | ||
conf.py | ||
custom.css | ||
index.rst | ||
meson.build |