From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 5BEC81B7BB for ; Tue, 24 Oct 2017 13:33:35 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id r68so15645097wmr.3 for ; Tue, 24 Oct 2017 04:33:35 -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=a9wwGJzsSvBJCAoMewJ2SLXwsLM1zHCOJ6PrV6EPQsI=; b=ArBoo6HggtRjS9QjXjANGnq9xZUmpspSPEjvWxjicMROmv1tK5XAIiug55xYzXVVs3 I+rUsB9qNsLj5405alIPeQ62EbxwMLePzFDjg2ubI/a1UyOWwG09h7EudjifoYuiOzLH +Kgk9MlQtgj4oFH2UvfYrrSj7FvIv7pOCm+PeEDqzfzG8Xbkp0r5c+o84si0rLEGZQRa fF+1ODKAz5Shtbgyg0gib8l9P8iho8ZJ9BRQtdJOmjqJH7W+IH7RXJWmDGPjpjrbbGcB 5Rm7ypYMVlvzMwOoFk3AOype386e6OGYJT/PYwYL12TtM3l+zrT4vfGsKR4jL8DMgplJ I8NA== 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=a9wwGJzsSvBJCAoMewJ2SLXwsLM1zHCOJ6PrV6EPQsI=; b=MkA54ouznf5SGwtBh4iwb+mNt64zQoO6o8r/jW/EqqGfr9EqtalZgDXLo5/dAWMtco R6tQRqVyQUrmuvHZxDU2GOg4tSPjNRVvK2Ko8D6uxPMnRi+3xM5s/ltb6LiH/B0Y6YNl sT5OhCmEv2LS8CQTuvx2lbhZlOuZw7GEvk5vI2sOmbDeclxKmWEgAOOdu1PPWEKL4p91 ouCIUXfB8Wyfx+os049UHtrruXZfSOPDHcFmeFhfW/Rs9ZoHereusqsWcB4v8dAoPXfX bh8u7l7aaIpq6nuj6SsbFfZCJDb1tRADMxs5eKHywwc21xEvPqW4NYFE6GLpfmHqaTYF g/1A== X-Gm-Message-State: AMCzsaUXcI6/e31QiWvUskbEbJFKU/MKJLTIZhIfV0bfpJaIGA0C9lMv M4njNMWd//yHPYBBQeqEICCq2TibgA== X-Google-Smtp-Source: ABhQp+QavYmSoLCCM17En9hD2wDGzShXq4rU+ioFMg3AiatSibrzDFXQvSDeCss3dLUsD3+NhRjJHg== X-Received: by 10.28.99.139 with SMTP id x133mr7545521wmb.122.1508844814877; Tue, 24 Oct 2017 04:33:34 -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 c67sm124414wmd.25.2017.10.24.04.33.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Oct 2017 04:33:34 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Tue, 24 Oct 2017 13:33:19 +0200 Message-Id: <8c8fb4394ba85f5bda005119cbfc851a3b728fa6.1508844772.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] net/mlx5: fix adjust priority for drop queue 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: , X-List-Received-Date: Tue, 24 Oct 2017 11:33:35 -0000 Drop queue should also adjust their priority according the most specific layer in the pattern they are matching to avoid dropping all the traffic. Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow") Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 26cf593af..549ae6916 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -1185,6 +1185,14 @@ priv_flow_convert(struct priv *priv, parser->queue[HASH_RXQ_ETH].ibv_attr->priority = attr->priority + hash_rxq_init[parser->layer].flow_priority; + } else if (parser->drop) { + /* + * Drop queue priority needs to be adjusted to + * their most specific layer priority. + */ + parser->drop_q.ibv_attr->priority = + attr->priority + + hash_rxq_init[parser->layer].flow_priority; } exit_free: /* Only verification is expected, all resources should be released. */ -- 2.11.0