From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 66A1F1B1ED for ; Mon, 9 Oct 2017 16:45:33 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id f4so24198741wme.0 for ; Mon, 09 Oct 2017 07:45:33 -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=F3Kq/skJbyOMCj66Lf/xSwC0ck9UH8TqOstAIwS5a2hgbffKBRl+KuJOTy1cPsgFwW 5gzTTXIc9Tap2EBRdoD3xI5lre+si/Oo+KPoReOtLkqMrRAZIU3r4I2Yz3VPyuxqKcaH zmJpnIYA7Etg5ceSgyI/iwK/eUZ4QX63VfRuhwenxE0dy/67aHZ9bsUpxpahWf2ZJ+Gi BoYYpXSfxQsLcEl41DbaXNC86k5lD/zfNbmF/SEo9CYItF4k1bT7VnudVVSCq0z/mNx8 eY4eA83pFNRcZLb/r2ZHQIOpGj8GisiK5A7FlIWCX30b74emuboUvzbrOCK9PDjyHbb5 5zYA== X-Gm-Message-State: AMCzsaV5VGhTZfHBdWlCJ0+R2a82GwzOTI4KNIure4o5XqwrfwNUpcqg 5O00gOvmPf6/7GnJrFxzMSGzxPMGLA== 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-dev] [PATCH v3 08/30] net/mlx5: fix rxqs vector support verification 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, 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