For the multiple hardware ports connect to a single DPDK port (mhpsdp), currently there is no information to indicate the packet belongs to which hardware port.
This patch introduces a new hardware port item in rte flow API, and the port value reflects the hardware port of the received packets. This patch adds the tx_mhpsdp_hwport setting in Tx queue API, the hwport value reflects packets be sent to which hardware port. While uses the hw port as a matching item in the flow, and sets the same port value on the tx queue, then the packet can be sent from the same hardware port with received. RFC: http://patches.dpdk.org/project/dpdk/cover/20221221102934.13822-1-jiaw...@nvidia.com/ Jiawei Wang (2): ethdev: add mhpsdp hardware port match item ethdev: introduce the mhpsdp hwport field in Tx queue API app/test-pmd/cmdline.c | 84 +++++++++++++++++++++ app/test-pmd/cmdline_flow.c | 29 +++++++ devtools/libabigail.abignore | 5 ++ doc/guides/prog_guide/rte_flow.rst | 8 ++ doc/guides/rel_notes/release_23_03.rst | 5 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 18 +++++ lib/ethdev/rte_ethdev.h | 8 ++ lib/ethdev/rte_flow.c | 1 + lib/ethdev/rte_flow.h | 32 ++++++++ 9 files changed, 190 insertions(+) -- 2.18.1