DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/2] fix incorrect register usage in meter
@ 2020-01-23  6:01 Suanming Mou
  2020-01-23  6:01 ` [dpdk-dev] [PATCH 1/2] net/mlx5: support maximum id in id allocate Suanming Mou
  2020-01-23  6:01 ` [dpdk-dev] [PATCH 2/2] net/mlx5: fix incorrect register usage in meter Suanming Mou
  0 siblings, 2 replies; 4+ messages in thread
From: Suanming Mou @ 2020-01-23  6:01 UTC (permalink / raw)
  Cc: dev

Flow with meter will split to three subflows, the prefix subflow with
meter action do the color, the meter subflow  filter the packets, the
suffix subflow do all the left actions for packets pass the filter.
Both the color and the subflow match between prefix and suffix use the
register to store the tag.

For some of the NICs with meter color register share capability, it
only uses 8 LSB of the register for color, the left 24 MSB can be used
for flow id match between meter prefix subflow and suffix subflow.

Currently, one entire register is allocated for flow matching which
causes the NICs with limited registers don't have enough register for
other matching.

Add the meter color share capability checking to fix lacking of
registers issue.

Suanming Mou (2):
  net/mlx5: support maximum id in id allocate
  net/mlx5: fix incorrect register usage in meter

 drivers/net/mlx5/mlx5.c           | 19 +++++++++++----
 drivers/net/mlx5/mlx5.h           |  4 ++++
 drivers/net/mlx5/mlx5_devx_cmds.c |  2 ++
 drivers/net/mlx5/mlx5_flow.c      | 49 ++++++++++++++++++++++++---------------
 drivers/net/mlx5/mlx5_flow.h      |  2 +-
 drivers/net/mlx5/mlx5_flow_dv.c   |  4 ++--
 drivers/net/mlx5/mlx5_prm.h       |  7 +++++-
 7 files changed, 60 insertions(+), 27 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-26 21:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23  6:01 [dpdk-dev] [PATCH 0/2] fix incorrect register usage in meter Suanming Mou
2020-01-23  6:01 ` [dpdk-dev] [PATCH 1/2] net/mlx5: support maximum id in id allocate Suanming Mou
2020-01-26 21:44   ` Raslan Darawsheh
2020-01-23  6:01 ` [dpdk-dev] [PATCH 2/2] net/mlx5: fix incorrect register usage in meter Suanming Mou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).