From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DB2C8A052A; Wed, 23 Dec 2020 14:50:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 93026C9D4; Wed, 23 Dec 2020 14:49:58 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id D558CC9CE; Wed, 23 Dec 2020 14:49:54 +0100 (CET) IronPort-SDR: zsZXoOJJTqwy5aRXzTtfYNLeDtVtwVIm0BCaeoPHzXEgxT/PVjfKZnUYLVw+JyIMXBvarsTXYM maCRw5mzRK8g== X-IronPort-AV: E=McAfee;i="6000,8403,9843"; a="260748426" X-IronPort-AV: E=Sophos;i="5.78,441,1599548400"; d="scan'208";a="260748426" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Dec 2020 05:49:51 -0800 IronPort-SDR: BaDUkUZW067QCGQc2SpdTbSXvmBzLM+YInfXktFgDQTMAEpvoxLbrz9y9xuUmul43RlbvhSPy8 nuUix1qpqjRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,441,1599548400"; d="scan'208";a="492853650" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga004.jf.intel.com with ESMTP; 23 Dec 2020 05:49:51 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 23 Dec 2020 05:49:50 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 23 Dec 2020 21:49:48 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Wed, 23 Dec 2020 21:49:48 +0800 From: "Zhang, Qi Z" To: "Yu, DapengX" , "Yang, Qiming" CC: "dev@dpdk.org" , "Yu, DapengX" , "stable@dpdk.org" Thread-Topic: [PATCH] net/ice: check Rx queue number on RSS init Thread-Index: AQHW2Oy8nJ2P8sLS/kuemCZF3OzOrKoEqFfA Date: Wed, 23 Dec 2020 13:49:48 +0000 Message-ID: <67a8c970cf1841d4a16409cd2bb563d7@intel.com> References: <20201223053018.103877-1-dapengx.yu@intel.com> In-Reply-To: <20201223053018.103877-1-dapengx.yu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/ice: check Rx queue number on RSS init 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" > -----Original Message----- > From: dapengx.yu@intel.com > Sent: Wednesday, December 23, 2020 1:30 PM > To: Yang, Qiming ; Zhang, Qi Z > Cc: dev@dpdk.org; Yu, DapengX ; stable@dpdk.org > Subject: [PATCH] net/ice: check Rx queue number on RSS init >=20 > From: YU DAPENG >=20 > When RSS is initialized, rx queues number is used as denominator to set d= efault > value into the RSS lookup table. If it is zero, there will be error of be= ing divided > by 0. So add value check to avoid the error. >=20 > Fixes: 50370662b727 ("net/ice: support device and queue ops") > Cc: stable@dpdk.org >=20 > Signed-off-by: YU DAPENG Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi