]> git.droids-corp.org - dpdk.git/commit
ethdev: support queue-based priority flow control
authorJerin Jacob <jerinj@marvell.com>
Tue, 8 Feb 2022 08:50:48 +0000 (14:20 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Feb 2022 13:02:28 +0000 (14:02 +0100)
commit0de345e9a0db54caea2e4c461a1c244d818442d2
tree3da1846ad960b8777a6a60e1dc56bdbb538e6d2c
parent1542d303a7c0127a7748881f7cb689983614ee43
ethdev: support queue-based priority flow control

Based on device support and use-case need, there are two different ways
to enable PFC. The first case is the port level PFC configuration, in
this case, rte_eth_dev_priority_flow_ctrl_set() API shall be used to
configure the PFC, and PFC frames will be generated using based on VLAN
TC value.

The second case is the queue level PFC configuration, in this
case, Any packet field content can be used to steer the packet to the
specific queue using rte_flow or RSS and then use
rte_eth_dev_priority_flow_ctrl_queue_configure() to configure the
TC mapping on each queue.
Based on congestion selected on the specific queue, configured TC
shall be used to generate PFC frames.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
doc/guides/nics/features.rst
doc/guides/rel_notes/release_22_03.rst
lib/ethdev/ethdev_driver.h
lib/ethdev/rte_ethdev.c
lib/ethdev/rte_ethdev.h
lib/ethdev/version.map