From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 650F7C433EF for ; Thu, 3 Mar 2022 02:29:05 +0000 (UTC) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FBF440141; Thu, 3 Mar 2022 03:29:04 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 4990540041 for ; Thu, 3 Mar 2022 03:29:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646274542; x=1677810542; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=28C0BKO0VL5N0rrlYFrpcB/RM6mOW953w0biIpTyVG0=; b=M+aA/y2jr96i3kT1FZkBP3cM1/WvCd35FNVYYwQj8NITX+nKrEiKIWwq LAvDTwg8H/q0BGYRR/unhV99HW27J6nd48B1OQF77YKWg5gLQANIShVfF 8l6scq1xjt5Vv91gp3uCyDq//qQVBx81yPgy6J+PI1Epk/nMLGOv1UZIl 7Egru6VoJ/rgklIfTIicsVcslM+WivR7ZkP+QQrXq4g01qEwqGAICojft hkfodwZ8LhQhMn5EG2QsNwSY0460PVSfokr3570kjcqRDbrxH4Hc7Qqdw tXHPqVFaGAnofWev8rvjNPOy71wJC870Z8MvpDTnSii17g0wyCUqO2GA5 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="237067929" X-IronPort-AV: E=Sophos;i="5.90,150,1643702400"; d="scan'208";a="237067929" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 18:29:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,150,1643702400"; d="scan'208";a="535628052" Received: from irsmsx602.ger.corp.intel.com ([163.33.146.8]) by orsmga007.jf.intel.com with ESMTP; 02 Mar 2022 18:28:59 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by irsmsx602.ger.corp.intel.com (163.33.146.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 3 Mar 2022 02:28:57 +0000 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.2308.021; Thu, 3 Mar 2022 10:28:54 +0800 From: "Zhang, Qi Z" To: Feifei Wang , "Xing, Beilei" , David Christensen , "Richardson, Bruce" , "Ananyev, Konstantin" , Ruifeng Wang CC: "dev@dpdk.org" , "nd@arm.com" , "Honnappa Nagarahalli" Subject: RE: [PATCH v1] net/i40e: remove redundant number of packets check Thread-Topic: [PATCH v1] net/i40e: remove redundant number of packets check Thread-Index: AQHYLqGdttiDesJxZEm0PqcSpcw4Jqys73NQ Date: Thu, 3 Mar 2022 02:28:54 +0000 Message-ID: References: <20220303015343.1755326-1-feifei.wang2@arm.com> In-Reply-To: <20220303015343.1755326-1-feifei.wang2@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.401.20 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 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Feifei Wang > Sent: Thursday, March 3, 2022 9:54 AM > To: Xing, Beilei ; David Christensen > ; Richardson, Bruce ; > Ananyev, Konstantin ; Ruifeng Wang > > Cc: dev@dpdk.org; nd@arm.com; Feifei Wang ; > Honnappa Nagarahalli > Subject: [PATCH v1] net/i40e: remove redundant number of packets check >=20 > For i40e_xmit_pkts_vec_xx function, it checks nb_pkts to ensure nb_pkts d= oes > not cross rs_thresh. >=20 > However, in i40e_xmit_fixed_burst_vec_xx function, this check will be > performed again. To improve code, delete this redundant check. >=20 > Suggested-by: Honnappa Nagarahalli > Signed-off-by: Feifei Wang > Reviewed-by: Ruifeng Wang Applied to dpdk-next-net-intel. Thanks Qi