From patchwork Mon Sep 21 08:30:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zhang X-Patchwork-Id: 78156 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5D047A04B7; Mon, 21 Sep 2020 10:27:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E646F1D943; Mon, 21 Sep 2020 10:27:04 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2BCAC1D942; Mon, 21 Sep 2020 10:27:02 +0200 (CEST) IronPort-SDR: ZIl6ElODpYIAWyM/W7G3NMIMei3suBHnDMNQud8V9s0WX4hzjuqpKMIL3phrZfsMUs2qURCgrX N+vC+2jylnqQ== X-IronPort-AV: E=McAfee;i="6000,8403,9750"; a="178408808" X-IronPort-AV: E=Sophos;i="5.77,286,1596524400"; d="scan'208";a="178408808" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 01:27:02 -0700 IronPort-SDR: qf+9ARfdmaawhbu9uf/9UkorVn47ZNe/X+sTYJKfpyQKowJa/v2c3ZGx0WCgmFqTckDcborHU0 ff0LpDTElz9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,286,1596524400"; d="scan'208";a="334292336" Received: from dpdk51.sh.intel.com ([10.67.111.142]) by fmsmga004.fm.intel.com with ESMTP; 21 Sep 2020 01:27:00 -0700 From: Qi Zhang To: ting.xu@intel.com Cc: dev@dpdk.org, beilei.xing@intel.com, Qi Zhang , stable@dpdk.org Date: Mon, 21 Sep 2020 16:30:58 +0800 Message-Id: <20200921083058.193611-1-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/iavf: fix iterator for RSS LUT 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Change RSS LUT iterator from uint8_t to uint16_t since the RSS LUT size could execeed 255. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: stable@dpdk.org Signed-off-by: Qi Zhang Acked-by: Ting Xu --- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 6bb915d81..440da7d76 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -157,7 +157,7 @@ iavf_init_rss(struct iavf_adapter *adapter) { struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(adapter); struct rte_eth_rss_conf *rss_conf; - uint8_t i, j, nb_q; + uint16_t i, j, nb_q; int ret; rss_conf = &adapter->eth_dev->data->dev_conf.rx_adv_conf.rss_conf;