Hi > Add action RTE_FLOW_ACTION_TYPE_SWITCH_PORT, it can be used to > redirect a packet to a network interface that connect to the same switch > domain, rte_ethdev's port_id is used as an identification of the destination. > A typical use case is: with a smart NIC for vSwitch acceleration, flow is > defined > to forward packets between the switch port that is managed by Port > Representor. >
The macro name in commit message not matching with name in code. > Signed-off-by: Qi Zhang <qi.z.zh...@intel.com> > --- > doc/guides/prog_guide/rte_flow.rst | 22 ++++++++++++++++++++++ > lib/librte_ether/rte_flow.h | 19 ++++++++++++++++++- > 2 files changed, 40 insertions(+), 1 deletion(-) > I guess doc patch should be separated out and some typos in doc. > /** > @@ -1148,6 +1155,16 @@ struct rte_flow_action_security { > void *security_session; /**< Pointer to security session structure. */ > }; > > +/** RTE_FLOW_ACTION_TYPE_PORT > + * > + * Redirect packets to a network interface in the same switch domain. > + * > + * Terminateing by default. Typo..