mbox series

[0/2] net/mlx5: add mbuf fast free Tx offload

Message ID 1608311697-31529-1-git-send-email-viacheslavo@nvidia.com (mailing list archive)
Headers show
Series net/mlx5: add mbuf fast free Tx offload | expand

Message

Viacheslav Ovsiienko Dec. 18, 2020, 5:14 p.m. UTC
This patch adds support of the mbuf fast free offload to the
transmit datapath. This offload allows to free the mbufs on
transmit completion in the most efficient way. It requires
the all mbufs were allocated from the same pool, have
the reference counter value as 1, and have no any externally
attached buffers.

The patchset is split in two parts, the first one is overall
send loop optimization and can be ported back to stable release,
and also is the preparation step before introducing the fast
free offload. The second part provides the code for the feature.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>

Viacheslav Ovsiienko (2):
  net/mlx5: optimize inline mbuf freeing
  net/mlx5: add mbuf fast free offload support

 drivers/net/mlx5/mlx5_rxtx.c | 67 ++++++++++++++++++++++++++++++++++++++------
 drivers/net/mlx5/mlx5_rxtx.h |  2 ++
 drivers/net/mlx5/mlx5_txq.c  |  6 ++++
 3 files changed, 66 insertions(+), 9 deletions(-)