[0/2] fix incorrect register usage in meter
Message ID | 1579759262-189720-1-git-send-email-suanmingm@mellanox.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C071FA0538; Thu, 23 Jan 2020 07:01:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1FC7A2C6D; Thu, 23 Jan 2020 07:01:16 +0100 (CET) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id BD725E07 for <dev@dpdk.org>; Thu, 23 Jan 2020 07:01:13 +0100 (CET) From: Suanming Mou <suanmingm@mellanox.com> To: Cc: dev@dpdk.org Date: Thu, 23 Jan 2020 08:01:00 +0200 Message-Id: <1579759262-189720-1-git-send-email-suanmingm@mellanox.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH 0/2] fix incorrect register usage in meter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Suanming Mou
Jan. 23, 2020, 6:01 a.m. UTC
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(-)