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 9D68E1B844 for ; Tue, 24 Oct 2017 17:18:31 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id r79so21080217wrb.13 for ; Tue, 24 Oct 2017 08:18:31 -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=o+5AOyvZ8y447MrxHQ0Gt0pSuIqPu0+FAEjG1kIJ4k8KuOF0bFH61/58+L2aPVahZE lZtYJOuAf4MiZWV5Sn97J3SSEb4WR9izO610FwRD4rdwdeBxH1iFSomrmyI2D+n9uUN4 Ot/zEyMYnQo9bGYcazrAxMhEimTSCxw78MuQKqpLFv/Y+NF/PMixR0wFIdUd1ZgmYOKp sLtd30CBx5BxpeNM80hEmIbxAilEsZMbnZEl11NMLoyDOIThrbi1Rjt/AsE55sPYy84W OLjdrJVHmtYMmIYshRCu7bdL5E7LqTmmqJQmSd1FwSUMnRPR4QoTXvS2HZpIQu5xJrIE CDKQ== 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=qDdB9i5TYgNSZXwtQcnP/r3qvSIx55KACxD2FEwuG9JHRNx2orjqOqfhTSTBWBkxW+ ndioPI+gvULOeEheaCNJrT+YZfttQwL3H8+Z/nqaw4mfyb7fne3Wcrs5Ndxzf+i6hPUo z5phdD/7NnImQiIIK3GX6jMNbH6fpk6AIIRaMMq7mIFT9uYjGoP+fNGFt3bvDIhWcHU+ 3WmMDGl/HhZ1QyVUYgo1w35gXnsc4vnb1P/WAumMenVmi5UEN3Q34TqV6WLTIYgrZuBP PuALkRasWVJ5O4N2E8bi4iWJPI2PyvBHuFwgacLhKNePYANSGX+yotqny4WPXQyaZ+mI BnQw== X-Gm-Message-State: AMCzsaWawmvXjy/VYln9a9O/5I1Srud2BBxHCM24lvv5Yf6GUU0v3lI2 g7K6KM716v9+uJ3oTQ8sk0ijLDxRNA== X-Google-Smtp-Source: ABhQp+T/JTf4e9O4WDpsFI1g3kuaXJvV2RAGLsyk9Z2zEbvlZNn0BkxsJY68pCJEP1acF7r41HTpjw== X-Received: by 10.223.186.66 with SMTP id t2mr14176443wrg.275.1508858311161; Tue, 24 Oct 2017 08:18:31 -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 v23sm637300wmh.8.2017.10.24.08.18.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Oct 2017 08:18:30 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Tue, 24 Oct 2017 17:18:14 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 3/7] 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: Tue, 24 Oct 2017 15:18:32 -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