mbox series

[0/7] ethdev: introduce hairpin memory capabilities

Message ID 20220919163731.1540454-1-dsosnowski@nvidia.com (mailing list archive)
Headers
Series ethdev: introduce hairpin memory capabilities |

Message

Dariusz Sosnowski Sept. 19, 2022, 4:37 p.m. UTC
  This patch series introduces hairpin memory configuration options proposed in
http://patches.dpdk.org/project/dpdk/patch/20220811120530.191683-1-dsosnowski@nvidia.com/
for Rx and Tx hairpin queues. It also implements handling of these options in mlx5 PMD
and allows to use new hairpin options in testpmd (through `--hairpin-mode` option) and
flow-perf (through `--hairpin-conf` option).

Dariusz Sosnowski (7):
  ethdev: introduce hairpin memory capabilities
  common/mlx5: add hairpin SQ buffer type capabilities
  common/mlx5: add hairpin RQ buffer type capabilities
  net/mlx5: allow hairpin Tx queue in RTE memory
  net/mlx5: allow hairpin Rx queue in locked memory
  app/testpmd: add hairpin queues memory modes
  app/flow-perf: add hairpin queue memory config

 app/test-flow-perf/main.c             |  32 +++++
 app/test-pmd/parameters.c             |   2 +-
 app/test-pmd/testpmd.c                |  24 +++-
 app/test-pmd/testpmd.h                |   2 +-
 doc/guides/platform/mlx5.rst          |   5 +
 doc/guides/testpmd_app_ug/run_app.rst |  10 +-
 drivers/common/mlx5/mlx5_devx_cmds.c  |   8 ++
 drivers/common/mlx5/mlx5_devx_cmds.h  |   5 +
 drivers/common/mlx5/mlx5_prm.h        |  25 +++-
 drivers/net/mlx5/mlx5.h               |   2 +
 drivers/net/mlx5/mlx5_devx.c          | 170 +++++++++++++++++++++++---
 drivers/net/mlx5/mlx5_ethdev.c        |   6 +
 lib/ethdev/rte_ethdev.c               |  44 +++++++
 lib/ethdev/rte_ethdev.h               |  65 +++++++++-
 14 files changed, 373 insertions(+), 27 deletions(-)
  

Comments

Thomas Monjalon Oct. 4, 2022, 4:44 p.m. UTC | #1
19/09/2022 18:37, Dariusz Sosnowski:
> This patch series introduces hairpin memory configuration options proposed in
> http://patches.dpdk.org/project/dpdk/patch/20220811120530.191683-1-dsosnowski@nvidia.com/
> for Rx and Tx hairpin queues. It also implements handling of these options in mlx5 PMD
> and allows to use new hairpin options in testpmd (through `--hairpin-mode` option) and
> flow-perf (through `--hairpin-conf` option).

2 things are missing in this series:

1/ motivation (why is this needed)
2/ compilation on Windows
	looks like devx_umem_reg has 5 parameters in Windows glue!
  
Dariusz Sosnowski Oct. 6, 2022, 11:08 a.m. UTC | #2
Hi Thomas,

I sent the v2 of the patches.

> 1/ motivation (why is this needed)
I added the feature motivation in the cover letter of v2.

> 2/ compilation on Windows
>         looks like devx_umem_reg has 5 parameters in Windows glue!
Fix for that is included in v2.

Best regards,
Dariusz Sosnowski