From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 0A7551B1C2 for ; Mon, 9 Oct 2017 16:45:32 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id f4so24198702wme.0 for ; Mon, 09 Oct 2017 07:45:32 -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=5qQzOxp1QH4/vnW6F/LTRR86rkw/tHN1yNTKSAGZJVU=; b=RhX7myjzgefM4POcqBEWVwt89duPJOSj3PDCMAXuzKqGPWjHVf2z88C3Ep0DeNxgbN LXe27oh9Iy8geFh3G0X3nwOPEqB7kTN5RUPi3CKyEUiZsc9IjvTeYsHJY54USBDkxMi2 A9L2HUpvHfe3++HcaLXEAO604IL+Tw7pGshILJMSIIlkU5VbUvS6HaOv0RQq/uTo8IJX ayCmrTcFEUkKvrdnypD6NliEEKDOOkiFqZJN6B9g8Mg+Zycre29Ec6grJqOni6rjyrYY ClSUIxoRTRn7lkwcHmDoy8L7nO2m24u4SW98BSSjBRTJCfpb2mHZluIEbM+5LxAsAf52 IlDg== 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=5qQzOxp1QH4/vnW6F/LTRR86rkw/tHN1yNTKSAGZJVU=; b=J8PgQhvWd8jFf0wsrKMfc6K049bAWJgwAmVvypoE9RAogsr7y9QX8aZyGQP9/x/c3R 3ujIJUFAz0ApzvIRgbohtwg88VcHQ/jCa6C0btZjso9dZQ0qpa0rH2ScbY0IiKX2NnTd 0/FSSdjTWUaroT4dUsF13lLOUjieUmalNX4V189Rbw8goiAPWLtx9cj3iRyrySlU8oBT twdI8ubmHAJIjHluP499xaLTrt6Tf9c1pEQ58fz/tCQKXCx5uXeD9FKbNdIgHJdquu5p uzEumTHIKkLvsyK/Nk4jPgcjDX2F4AIxMTVyC19weSSznZXDn0mf/1pTEAgdnUDIPPlp S2Yg== X-Gm-Message-State: AMCzsaVuqWnfppCaVaROWsD5VjvI7LVPQTbRlnlLSDdS2azrtbS4X+QN XG5D5hYSOQOTzJiGlqshXZdSMu5NvA== X-Google-Smtp-Source: AOwi7QC99Mo/8dzRpPDufo6TJH3YpwJBzOUwO5uzeYQfvkYUhhepzYVspbj5LhKBqS8cMMRgJ/A4Eg== X-Received: by 10.223.139.200 with SMTP id w8mr11346345wra.172.1507560332666; Mon, 09 Oct 2017 07:45:32 -0700 (PDT) Received: from ping.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id x15sm6791495wma.32.2017.10.09.07.45.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Oct 2017 07:45:31 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: adrien.mazarguil@6wind.com, yskoh@mellanox.com, ferruh.yigit@intel.com, stable@dpdk.org Date: Mon, 9 Oct 2017 16:44:44 +0200 Message-Id: <7bfd0c1bbb77895926fbd6bdae6d6e03553dc749.1507560012.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-stable] [PATCH v3 08/30] net/mlx5: fix rxqs vector support verification X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 14:45:33 -0000 The number of queues in DPDK does not means that the array of queue will be totally filled, those information are uncorrelated. The number of queues is provided in the port configuration whereas the array is filled by calling tx/rx_queue_setup(). As this number of queue is not increased or decrease according to tx/rx_queue_setup() or tx/rx_queue_release(), PMD must consider a queue may not be initialised in some position of the array. Fixes: 6cb559d67b83 ("net/mlx5: add vectorized Rx/Tx burst for x86") Cc: yskoh@mellanox.com Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx_vec_sse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_rxtx_vec_sse.c b/drivers/net/mlx5/mlx5_rxtx_vec_sse.c index 7e5ce6d..6d337ec 100644 --- a/drivers/net/mlx5/mlx5_rxtx_vec_sse.c +++ b/drivers/net/mlx5/mlx5_rxtx_vec_sse.c @@ -1376,6 +1376,8 @@ priv_check_vec_rx_support(struct priv *priv) for (i = 0; i < priv->rxqs_n; ++i) { struct mlx5_rxq_data *rxq = (*priv->rxqs)[i]; + if (!rxq) + continue; if (rxq_check_vec_support(rxq) < 0) break; } -- 2.1.4