mbox

[0/5] add hwpools and support exchanging mbufs between pools

Message ID 20230411075528.1125799-1-asekhar@marvell.com (mailing list archive)
Headers

Message

Ashwin Sekhar T K April 11, 2023, 7:55 a.m. UTC
  This patch series enables the creation of special types of pool in cnxk
mempool PMD called as hwpools. A hwpool will not have any buffers of its
own but instead will only have a hardware AURA associated with it. This
hwpool will be attached to another normal rte_mempool and the hwpool will
use the buffers from this attached rte_mempool during alloc/free. The
hwpool leverages the POOL:AURA association in cnxk hardware to achieve
this.

This patch series also adds the support for exchanging mbuf buffers between
cnxk mempools. The pools must have buffers of same size and the range check
for the pools must be disabled while exchanging mbufs.

Ashwin Sekhar T K (5):
  mempool/cnxk: use pool config to pass flags
  common/cnxk: add NPA aura create/destroy ROC APIs
  mempool/cnxk: add NPA aura range get/set APIs
  mempool/cnxk: add hwpool ops
  mempool/cnxk: add support for exchanging mbufs between pools

 drivers/common/cnxk/roc_nix_queue.c         |   2 +-
 drivers/common/cnxk/roc_npa.c               | 254 +++++++++++++++++-
 drivers/common/cnxk/roc_npa.h               |  10 +
 drivers/common/cnxk/roc_sso.c               |   2 +-
 drivers/common/cnxk/version.map             |   4 +
 drivers/mempool/cnxk/cn10k_hwpool_ops.c     | 272 ++++++++++++++++++++
 drivers/mempool/cnxk/cnxk_mempool.h         |  32 +++
 drivers/mempool/cnxk/cnxk_mempool_ops.c     |  19 +-
 drivers/mempool/cnxk/meson.build            |   2 +
 drivers/mempool/cnxk/rte_pmd_cnxk_mempool.h |  56 ++++
 drivers/mempool/cnxk/version.map            |  10 +
 drivers/net/cnxk/cnxk_ethdev_sec.c          |  25 +-
 12 files changed, 658 insertions(+), 30 deletions(-)
 create mode 100644 drivers/mempool/cnxk/cn10k_hwpool_ops.c
 create mode 100644 drivers/mempool/cnxk/rte_pmd_cnxk_mempool.h
 create mode 100644 drivers/mempool/cnxk/version.map