This patch adds the description for send to kernel action support. Signed-off-by: Jiawei Wang <jiaw...@nvidia.com> Acked-by: Ori Kam <or...@nvidia.com> --- doc/guides/nics/mlx5.rst | 7 +++++++ doc/guides/prog_guide/rte_flow.rst | 9 +++++++++ lib/ethdev/rte_flow.h | 1 - 3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index eac67a7864..7bee57d9dd 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -165,6 +165,7 @@ Features - Sub-Function. - Matching on represented port. - Matching on aggregated affinity. +- Send to kernel. Limitations @@ -720,6 +721,12 @@ Limitations The flow engine of a process cannot move from active to standby mode if preceding active application rules are still present and vice versa. +- Send to kernel action (``RTE_FLOW_ACTION_TYPE_SEND_TO_KERNEL``): + + - Supports on non-root table. + - Supports on isolated mode. + - In HW steering (``dv_flow_en`` = 2): + - not supported on guest port. Statistics ---------- diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst index 5bc998a433..f8c130bc8b 100644 --- a/doc/guides/prog_guide/rte_flow.rst +++ b/doc/guides/prog_guide/rte_flow.rst @@ -3490,6 +3490,15 @@ The ``quota`` value is reduced according to ``mode`` setting. | ``RTE_FLOW_QUOTA_MODE_L3`` | Count packet bytes starting from L3 | +------------------+----------------------------------------------------+ +Action: ``SEND_TO_KERNEL`` +^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Send packets to the kernel, without going to userspace at all. + +The packets will be received by the kernel driver sharing the +same device as the DPDK port on which this action is configured. + + Negative types ~~~~~~~~~~~~~~ diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 2ebb76dbc0..23addb4382 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2931,7 +2931,6 @@ enum rte_flow_action_type { * The packets will be received by the kernel driver sharing * the same device as the DPDK port on which this action is configured. * This action mostly suits bifurcated driver model. - * This is an ingress non-transfer action only. * * No associated configuration structure. */ -- 2.18.1