From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 942E87CCD for ; Wed, 26 Jul 2017 17:17:28 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2017 08:17:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,415,1496127600"; d="scan'208";a="112218240" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga004.jf.intel.com with ESMTP; 26 Jul 2017 08:17:26 -0700 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX154.ger.corp.intel.com (163.33.192.96) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 26 Jul 2017 16:17:25 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.133]) by irsmsx112.ger.corp.intel.com ([169.254.1.42]) with mapi id 14.03.0319.002; Wed, 26 Jul 2017 16:17:24 +0100 From: "Dumitrescu, Cristian" To: "Lu, Wenzhuo" , "dev@dpdk.org" CC: "Lu, Wenzhuo" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: fix hierarchy commit check Thread-Index: AQHTBh2M3/shmXUWLku6QnQzlOBLmqJmOCUg Date: Wed, 26 Jul 2017 15:17:24 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891267BA85561@IRSMSX108.ger.corp.intel.com> References: <1501080219-68567-1-git-send-email-wenzhuo.lu@intel.com> In-Reply-To: <1501080219-68567-1-git-send-email-wenzhuo.lu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWE5NjYzMTgtM2ZiNi00OGE3LWI0YzEtMmE0NTQxODY1NjE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImYrZ25pYWJiQVl2VWM2Ujd1WXcwbjl1cklySE1zSFV6empNWE50b0ZhcEU9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix hierarchy commit check 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: Wed, 26 Jul 2017 15:17:29 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Wednesday, July 26, 2017 3:44 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH] net/i40e: fix hierarchy commit check >=20 > If there's no Traffic Management node added. Not > necessary to check if TM is committed. >=20 > Fixes: cac29c3c00a4 ("net/i40e: support committing TM hierarchy") > Signed-off-by: Wenzhuo Lu > --- > drivers/net/i40e/i40e_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethde= v.c > index 9fcccda..042bcc1 100644 > --- a/drivers/net/i40e/i40e_ethdev.c > +++ b/drivers/net/i40e/i40e_ethdev.c > @@ -2033,7 +2033,7 @@ static inline void i40e_GLQF_reg_init(struct > i40e_hw *hw) >=20 > i40e_filter_restore(pf); >=20 > - if (!pf->tm_conf.committed) > + if (pf->tm_conf.root && !pf->tm_conf.committed) > PMD_DRV_LOG(WARNING, > "please call hierarchy_commit() " > "before starting the port"); > -- > 1.9.3 Acked-by: Cristian Dumitrescu