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 9EAD41B69D for ; Tue, 6 Feb 2018 10:26:04 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id x4-v6so16903679wmc.0 for ; Tue, 06 Feb 2018 01:26:04 -0800 (PST) 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=12tKWCvPH2ygx3hnT3xHdHWCX8yXFuPZqwBVxRXIdq0=; b=Ist3B41hsjdMvhOR6sxekRK7AJf7t6kLcVv1lL+GaJpfxDBLSuSMXRRD8NY6rOy7dQ gDH/axFHbUFJ1sK/fsgkJjj0qg+mi7oZNlrFHJJhjnkMOc0NqW8b5u5+nx0gkqFyGu+w XMWFyQeZuL1gqYoj6AWrJFe/1hWhmzm0tMCRHv54ah/JydbVdc+ykfwKx6Ox8VtO9aAP RtwNytWMRZlwaPFBnc85pf2P3UtsCdAQSGbilYXSXUqX+6b25b8MHE+SVC/BLScffdus g5SYwNOCq3yLHjahUqvi4Yvz2+pS2NdAckfclRyzMhsuJqYANk5Lao/hsV5H2zN+ZW/O xV+g== 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=12tKWCvPH2ygx3hnT3xHdHWCX8yXFuPZqwBVxRXIdq0=; b=ThJNTJXelQgJz2/WA1cjiDEPsFaHYfXIrwmuC07HcbPncE1PDh/UgyxH8bn1mqFR7d L/v1Oofj9I+vIZffiscA/ikOVwTxsKMyecil/NCOy6RJTNW/6HXCab9KKnzfLUuUofCb vFO6607rb1NKBVLczUew7YlOgNxf1m3gnI7LtiM1xH8WBZ6QEbtMxvuhe8WHDO/6pzLq 6Ai8Qy1Szel4Uiq4XU2hJSvopjOgUHlkzfZq7thqAMH5p1bJR4z4fs4bLAdzbUdx1KGt e5vCPkCpbQN1rCRAEtbJ8XYUt0CJM+NC/etliXrl8wRSggErW4VgOrsg+sega34cVnsH uAIA== X-Gm-Message-State: APf1xPAUZRgQwt0vJ8Ur9R5uSGA0QzHg1pAQ9ZY8srViZJoBS6RW7j7z z5FdJDdMXt0bws6sQZDw1DKOEg7spw== X-Google-Smtp-Source: AH8x227YFz+Z3KS7dmsXDD/NT2GTMaKvXAD+3zZKlQpcyB4wejA3Zl+RQBgN/HvkE5+09Q342TWMrA== X-Received: by 10.80.135.205 with SMTP id 13mr2990158edz.253.1517909164194; Tue, 06 Feb 2018 01:26:04 -0800 (PST) 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 g55sm10117742eda.70.2018.02.06.01.26.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 01:26:03 -0800 (PST) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil , Shahaf Shuler , Yongseok Koh , xuemingl@mellanox.com, stable@dpdk.org Date: Tue, 6 Feb 2018 10:26:21 +0100 Message-Id: <2ef29ef701551d09e82f07b52c37544ddcc351fb.1517909149.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] net/mlx5: fix UAR remapping on non configured queues 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, 06 Feb 2018 09:26:04 -0000 priv_tx_uar_remap() is wrongly considering the queue is already configured and thus present in the queue array of the device. Fixes: f8b9a3bad467 ("net/mlx5: install a socket to exchange a file descriptor") Cc: xuemingl@mellanox.com Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_txq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 23002cf86..ed1c713ea 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -296,6 +296,8 @@ priv_tx_uar_remap(struct priv *priv, int fd) * Ref to libmlx5 function: mlx5_init_context() */ for (i = 0; i != priv->txqs_n; ++i) { + if (!(*priv->txqs)[i]) + continue; txq = (*priv->txqs)[i]; txq_ctrl = container_of(txq, struct mlx5_txq_ctrl, txq); /* UAR addr form verbs used to find dup and offset in page. */ -- 2.11.0