From patchwork Fri Oct 13 12:09:44 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: 30350 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 7C7F01B653; Fri, 13 Oct 2017 14:10:10 +0200 (CEST) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id E0F8D1B643 for ; Fri, 13 Oct 2017 14:10:09 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id u138so20926400wmu.5 for ; Fri, 13 Oct 2017 05:10:09 -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; bh=G11Z2Hdi3flnwDMSsjf5aq2PoexEb2Sb216Xc2iWWx4=; b=SaFPXUzMmbIWV8ei92XNcyGgOuBzMTKDZkUc/VO+JtSfY8iah9MKIYWspxzG1BSkFB WDb7/E0CVLlJGduP0zXewPMrWlOvjNUc60vBNgjJ/qSTNobEVShSRTWdvtLx3ZwEaT9M gezvI9WTfj43KeKeR2+UveF6igk51UGs1DMusjVe/HhUuIYHR4l2S3MQMZAx30Th6y3x X2zD8pq/a3tt1D8gLTw+3ny4Rv5eA8tpPDemxDTKYcgIioJuZW9B8ewJciSl5hSwyVut FzDJQhUBKlQsj9mCu3BGDi+leYBVo1Fa8A69F5weOtSxErh9PO28yevvtEYQvlmCi1Lb WbJA== 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=G11Z2Hdi3flnwDMSsjf5aq2PoexEb2Sb216Xc2iWWx4=; b=A3ABqfvRifzpxMLRfYghDgyACj+od9P3t+wtCvhKBTEoafx7mG2j562PnsDDWSqTb5 xMa6PqISsxy7BeC/KRm7gbJkfM4dntmypY8RzP265CzdK4io9G/w1/vhZstfv7g38sVR KuE+vRKlT8JDyKSkmnzLiloMPgqzdSJK+wYTrRUfkKU66g4gjX74yLLM+8Nrx3cHZ9k5 QejlvoeRi3tCbEadLAQhAGeBR7yaCphEwBYpAy0xPKwWimS9w+drzImCSY+ZVDNKvqzF YlTej/KFAc85EDavvMqCZbPXjM2WkkJPoVF4fhXqa15OAdnpeWLYAZt8jTkN3qWIFAKX mcNQ== X-Gm-Message-State: AMCzsaW3x9PDRtztLVoLoFY60Zne7Lrs7PQRJIdvztLXjMuunCno2sVn AnAO3oSCyug/7Exqn0wgmpG11mTKSQ== X-Google-Smtp-Source: ABhQp+TigqdvU/QcQwRUG5MDCZCi1gbpeGLAY3z6FWS/680HGjAapShXDe6+c5ktLAt+G4buISLOgg== X-Received: by 10.28.69.210 with SMTP id l79mr1270458wmi.117.1507896609021; Fri, 13 Oct 2017 05:10:09 -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 r123sm802284wmf.41.2017.10.13.05.10.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 05:10:08 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Fri, 13 Oct 2017 14:09:44 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 1/2] 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) {