From patchwork Mon Oct 23 09:44:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?N=C3=A9lio_Laranjeiro?= X-Patchwork-Id: 30691 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 240C71B3D3; Mon, 23 Oct 2017 11:45:25 +0200 (CEST) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id E4E3A1B3CB for ; Mon, 23 Oct 2017 11:45:18 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id p75so8278959wmg.3 for ; Mon, 23 Oct 2017 02:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=G11Z2Hdi3flnwDMSsjf5aq2PoexEb2Sb216Xc2iWWx4=; b=wPZ5oSwcb7WbqjQNglAOaEOKMzFvARGas7EERy+r1UDo7Bp1N1KZ1prmWOCNFNwlEO 3qMbrOvGnXNT1QI/kh0J9YBkYScSRcDGJshaqQ/fLjxh68v+RTHOXvJbnof9zGKXQEMc Py2pwJKex1xLHfgqFm2fOwX3FjVWZ45xKahp6gU5lKAw0PI7ZWjvXXBZcxWGu7MeRjBP TOqQtKlz3qEDt/pma1g/IKFzLgWrq0QoIRZ4vR8YEKnijyK7Okxf9A0N+jOFhjHxBiCT 7Ga3nuY5JThJnxAHfwBXefhTExaVQO8oPj9K+D1LBk99+SoVCqxhRxCzuaENEkHqYc+7 885A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=G11Z2Hdi3flnwDMSsjf5aq2PoexEb2Sb216Xc2iWWx4=; b=RrSjY/HjSNAu0wzXZLxd+qUCNbvPbuggXGLFUdRpoon1SzlZ5Vx9IEpafnmB3O6l6+ tp1eSY5OU9anJYXYo0EURj42ZoobIiqo92wYdLVQa19KufZCV5z2u3C7K7sPAWBuK6W6 4YaSVjgM4Lm/IZoyzEQ6PZ6MjcSYD4M3QLpTs23aMWiPIlFby4Yd86QdhNr9ham2tIow PrQYwj9RsM7O2lATojWxOm/N+HcqATuJgHTkb/sGtADPyfivHBGGKELvgHtvpzNCQjUe wodfvpsRj7eoKqHem5xGIwisPITQGH5ybXZDGjeG5qRMD8Rcts3/smHQQqcImJMKY9pR UegQ== X-Gm-Message-State: AMCzsaW0fHQcDzIAuUYW3GsT/2fBnmcWTm3LaxbiAuxj2aOXWY4aMtvF E+sMoz0q3ZAeW8PNt5XKmr2rIg+2Gw== X-Google-Smtp-Source: ABhQp+QyyiDex8zM5EPK4dvLZga3sEDMr9Y6Bl+9G0mVnFQew3vXISd2s3m8haPIj9wEG9UD/nGePA== X-Received: by 10.28.170.9 with SMTP id t9mr4676113wme.148.1508751918181; Mon, 23 Oct 2017 02:45:18 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id x189sm2829610wmf.10.2017.10.23.02.45.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 02:45:17 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Mon, 23 Oct 2017 11:44:59 +0200 Message-Id: <0ea336c48401bec6674749d7d857094889c20cae.1508750504.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 1/3] net/mlx5: fix flow priority for queue action X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Priority is wrongly configured when the action is queue, using the Ethernet layer priority instead of the most specific layer found. Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow") Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 2b6380fb9..440bda9a1 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -1172,8 +1172,18 @@ priv_flow_convert(struct priv *priv, * Last step. Complete missing specification to reach the RSS * configuration. */ - if (parser->queues_n > 1) + if (parser->queues_n > 1) { priv_flow_convert_finalise(priv, parser); + } else if (!parser->drop) { + /* + * Action queue have their priority overridden with + * Ethernet priority, this priority needs to be adjusted to + * their most specific layer priority. + */ + parser->queue[HASH_RXQ_ETH].ibv_attr->priority = + attr->priority + + hash_rxq_init[parser->layer].flow_priority; + } exit_free: /* Only verification is expected, all resources should be released. */ if (!parser->create) {