From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 54B7A1B7BD for ; Wed, 31 Jan 2018 17:13:48 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id 141so82395wme.3 for ; Wed, 31 Jan 2018 08:13:48 -0800 (PST) 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; bh=5N/fLSlV154ljXm6eRuLD/InrbvP4SDOkOv0v59mtN8=; b=TTTSKGt1iXniOk4+5s0gs2cGBpdD1Fe9w6njQq2Vmv/ThS+XSZNVvesURvcRZohXzp fd9yNCLRv2IfxqDLNVpA5frCQNeFFa47/fTnoyGjlRA5+6S0MWtyXeDKyGsCbRsXchwn RQnZTihmpMRXZL6KUz3v8emivrmjhEoXzDhQdgBVFA4t+hEqCXFOKuEFbNioICIC1M9A 3i2d4JgGxPJVe8qoLfHvEhtU+0UJLLhPsGvStuERZfRWNiR9OQ0bpKkwLxFSJoXnCgYU 4cPvzBTcHf67WZ99Cj+RN12+GnTYOYjKPd132BWRa/DJe7MXzSvSTHs/ckb7QFFWFngx g7Ug== 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; bh=5N/fLSlV154ljXm6eRuLD/InrbvP4SDOkOv0v59mtN8=; b=qNE6HU8DUOAnGidol9QdHAZnM/SSL5iKNzTgXIxLu50NfeTrbSHAcED48weYBYkrE2 84agEp3G5qImr9c6TUGl2G9XefoYx9zaamfvluBlVvtxMx2W+Zs6LK8xKtawa6WxaHhT s1YbLNWSfHWptqmbQ5Cy6gull3ME3aOQ4dEDHm3Eqf07OcshqMeG7X9dOpF1daRtHfDV sy6SczqTPO/qTqqlevAbZiwuyH2+KOTfzSKxVo+wsyvQazaoNisPVY69Ty+aPl41BHdX Y+jnGbRCPGR3kr4OlLbLssFgyj6mT3SKYEDP4rMLc2BhYNDacNLCUj8OAwxxsdMaA4vc QK3Q== X-Gm-Message-State: AKwxyteLFlVWTi2UK4qG3vTBbCE5p7El/YUFGdLOWF4AjDqbS7dQaJHO JACn7Uy5LwGefenpA3S4irzF X-Google-Smtp-Source: AH8x224LvgiPBm6DfN1V2/+nCsU37YWglgVux60TK12vfu099fV8yCSGffD4czsf577Ed4T/G5Ynmg== X-Received: by 10.28.214.67 with SMTP id n64mr21775179wmg.25.1517415227992; Wed, 31 Jan 2018 08:13:47 -0800 (PST) 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 63sm61798wms.46.2018.01.31.08.13.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 08:13:47 -0800 (PST) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil , Shahaf Shuler , Yongseok Koh , stable@dpdk.org Date: Wed, 31 Jan 2018 17:13:54 +0100 Message-Id: <4a50d97a4db1af0071ca41d67e0d0ac47e698d17.1517415209.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-stable] [PATCH] net/mlx5: fix flow priority on queue action X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2018 16:13:48 -0000 A single queue should have the same verbs priority as an RSS one. Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 2360b0ee5..1ca2037ad 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -871,7 +871,7 @@ priv_flow_convert_items_validate(struct priv *priv, } parser->inner = IBV_FLOW_SPEC_INNER; } - if (parser->drop || parser->queues_n == 1) { + if (parser->drop) { parser->queue[HASH_RXQ_ETH].offset += cur_item->dst_sz; } else { for (n = 0; n != hash_rxq_init_n; ++n) @@ -1107,7 +1107,7 @@ priv_flow_convert(struct priv *priv, * Second step. * Allocate the memory space to store verbs specifications. */ - if (parser->drop || parser->queues_n == 1) { + if (parser->drop) { unsigned int priority = attr->priority + hash_rxq_init[HASH_RXQ_ETH].flow_priority; @@ -1172,14 +1172,9 @@ priv_flow_convert(struct priv *priv, * Last step. Complete missing specification to reach the RSS * configuration. */ - if (parser->queues_n > 1) { + if (!parser->drop) { priv_flow_convert_finalise(priv, parser); } else { - /* - * 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; -- 2.11.0