mbox

[0/4] introduce support for hairpin between two ports

Message ID 1601511962-21532-1-git-send-email-bingz@nvidia.com (mailing list archive)
Headers

Message

Bing Zhao Oct. 1, 2020, 12:25 a.m. UTC
  This patch set will add the support for hairpin between two ports.
In the meanwhile, the compatibility of the previous single port mode
is taken into consideration and kept.

The patches contain the following changes:
1. new APIs to bind and unbind hairpin ports in manual binding mode.
2. new internal APIs for PMD to pass the queue information and
   configure the queue pair.
3. new attribute members in the hairpin queue configuraiton structure
   to specify the binding mode and enable explicit TX flow mode.
4. Testpmd support to configure the hairpin modes for two ports
   hairpin verification.

Bing Zhao (4):
  ethdev: add hairpin bind and unbind APIs
  ethdev: add new attributes to hairpin config
  ethdev: add APIs for hairpin queue operation
  app/testpmd: change hairpin queues setup

 app/test-pmd/parameters.c                |  15 +++
 app/test-pmd/testpmd.c                   |  68 ++++++++++++-
 app/test-pmd/testpmd.h                   |   2 +
 lib/librte_ethdev/rte_ethdev.c           | 162 +++++++++++++++++++++++++++++++
 lib/librte_ethdev/rte_ethdev.h           |  69 +++++++++++++
 lib/librte_ethdev/rte_ethdev_driver.h    | 160 ++++++++++++++++++++++++++++++
 lib/librte_ethdev/rte_ethdev_version.map |   5 +
 7 files changed, 477 insertions(+), 4 deletions(-)