From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id AD8C41B642 for ; Mon, 23 Oct 2017 16:50:16 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id j15so5528112wre.8 for ; Mon, 23 Oct 2017 07:50:16 -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=1Iqz8bpzmLCbUVxnMB4b418vUWQwHuuTRp+hRCd3LJb9KlmVIvFaVPbGlFK59h3y4T A7zP8FH5ZfPBh++DLDB945fZfRY5b1iPUghZtTHRWiWew6okyFyvBYnrwCOeOpEygvSr kqPfqzAJsq/X2touePuC8NK/wOR51QGS9u1R3NaNWRYnVX1tZXlUCFWcrA/Gb7yjhxk7 7AFFQX7uAmgE/qOnLmBlnApfWBblYxlBuyhua3r0aozpcBlu3AyaYWnIwARUXtrDURWg OCiyj2oG0+SrUZdUvNUIuHXbzGUfVkEWv8bHa62asZNO0ZY1YGvVXq2pGnHr/qe3nxM2 9Clg== 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=pnW+fsfauHq18gdamIepN6tiOm/k7BIW8ui9h9Swa+0WlzuQBSL9JGTFBznXnL86Op 8yWzFSol8vyWGm34Egd7x/tfUTdio3rF/BQL2ybNq9El0/gVvEjP9DPLGy/SvH3npIib hrsbJg0fvtAki5Tkn9xL84wDO0CG4ByFyWtYYy7CYo/37sLYxu6RIdPjLhynJX7gUE3L acwylI1fsNSiCkyyRMwNdMvF8rJwnfAH5xXBryF93J5RWXiwai7E8MrYMSoZtOky2F4+ bBf5txGml5+V7aZrgOC8G2eJdyKlfJ7o9Z5KAExdatUFe67LuxxOuMnDfgH091FfKuD/ iW6g== X-Gm-Message-State: AMCzsaXgMRj8HP5/lqiCmZst6qEGI8Eff8oB82il9ygrDcAhQHO4odA+ u51PHCAhrepCykl67J2dHEq7wSIUTw== X-Google-Smtp-Source: ABhQp+T9MGoiliFBziBK3agSAwXNtYm/K30qkZgiBpbFSFun3pVVX0UyNmrBrBui5mpukHxbp86aqg== X-Received: by 10.223.163.22 with SMTP id c22mr1579518wrb.73.1508770215750; Mon, 23 Oct 2017 07:50:15 -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 s196sm4908234wmb.26.2017.10.23.07.50.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 07:50:15 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Mon, 23 Oct 2017 16:49:53 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 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: Mon, 23 Oct 2017 14:50:17 -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