From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 810071B20B for ; Thu, 19 Oct 2017 14:51:53 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id u5so8221795wrc.5 for ; Thu, 19 Oct 2017 05:51:53 -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=94e0hAmYOk/DldWH7ITQvoNXLSSGjEMfy7OzcrhiVwI=; b=E60Jj16wQlzo0xNLtUTjUatT7fDp8Jhmgy/ipTJCu4D36cq2XW2J+bDfsv4lJ98J7F CYehaiJasnW3IUtdjW2g1quLOucVKiANNwMNZognLKph7v7Hvi+LB6CKoeR8ZxTG0PLo BzOlVc8MgJaZMOSToxOkU9iTJGXwSxqJQ0xi70PSInlDcV1lkNjX29rDFZ6Ge4v8W0GG XjpZiD+xabT6xbQ7O/ghObvi8sks7S425PFlie7SIvyDr2pe9ZwvkJJkqCOGc7YoFuSq NrMCDzu32PSwqH6P3aDogpV0GBTWeK+mjkT1z83vZor+d9nwnTahlR7LRqzEfT3Vl5IR ADHQ== 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=94e0hAmYOk/DldWH7ITQvoNXLSSGjEMfy7OzcrhiVwI=; b=krG1X6G5ELBhgidGW9niAxVErdTFwBUEPi3rBbjDe8i9XsxvNmqN76eBZaAbzahlDE 33Jc+su2xHu+MbvbLDwBHI9WpIl6HA6wJMCZbPA/mjBr9e7vO7566RHN1l6A7snnCh9T ZTrhVl8uQdk4oxNQqObGVgrAZxp9DzT4Td3K40R7lRyHXg6dePg89n32WoK4lRRJ29TZ R135xgjK5UgTShhe5GgVMJAEyFpkPn+jH3VAfz6dDT7RXMcVPKPkwd5mI4GQOvHASY9m S5uUhkSUOeqW9TZ6QAL52Fr/OC8vNiBDhGQXsbcdIi8UayFOv3zoupIIIe7GM8mpZyut TOoQ== X-Gm-Message-State: AMCzsaUJ2gqDzYRT0CGe2WnsSUYkU6SPdKadz3Rba4X47wEWuEUAECoo AlPZqDMp++vYXRoo9/u1UQnYaOaMIw== X-Google-Smtp-Source: ABhQp+Syh6bzSH+T5fMP2DAz2wjSI8pBxWDyQmhzQfE8dt07httMNRyd1Qld6L4y0bhzjr5z/NDJcA== X-Received: by 10.223.163.151 with SMTP id l23mr1521994wrb.73.1508417512770; Thu, 19 Oct 2017 05:51:52 -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 69sm1024189wmp.11.2017.10.19.05.51.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Oct 2017 05:51:52 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Thu, 19 Oct 2017 14:51:31 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 3/6] net/mlx5: fix drop flows when port is stopped 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: Thu, 19 Oct 2017 12:51:53 -0000 Fix the drop queue rule creation when the port is stopped. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 452fde588..6f458f44a 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -1679,9 +1679,9 @@ priv_flow_create_action_queue_drop(struct priv *priv, }; ++parser->drop_q.ibv_attr->num_of_specs; parser->drop_q.offset += size; + flow->drxq.ibv_attr = parser->drop_q.ibv_attr; if (!priv->dev->data->dev_started) return 0; - flow->drxq.ibv_attr = parser->drop_q.ibv_attr; parser->drop_q.ibv_attr = NULL; flow->drxq.ibv_flow = ibv_create_flow(priv->flow_drop_queue->qp, flow->drxq.ibv_attr); -- 2.11.0