From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 38F73234 for ; Fri, 30 Jan 2015 11:16:41 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 30 Jan 2015 02:13:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,491,1418112000"; d="scan'208";a="645001082" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga001.jf.intel.com with ESMTP; 30 Jan 2015 02:16:38 -0800 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.28]) by IRSMSX151.ger.corp.intel.com ([169.254.4.141]) with mapi id 14.03.0195.001; Fri, 30 Jan 2015 10:16:37 +0000 From: "Wodkowski, PawelX" To: "Ouyang, Changchun" , Thomas Monjalon , "Richardson, Bruce" Thread-Topic: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf rss Thread-Index: AQHQNSvegZBK61bmM0KneVRinNefH5zT6r6AgADgLACAAoeaUIAAmOWAgACF1sA= Date: Fri, 30 Jan 2015 10:16:36 +0000 Message-ID: References: <1421811523-18737-1-git-send-email-changchun.ouyang@intel.com> <1561845.4QtzaTeLCI@xps13> In-Reply-To: Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf rss X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2015 10:16:41 -0000 > -----Original Message----- > From: Ouyang, Changchun > Sent: Friday, January 30, 2015 2:20 AM > To: Wodkowski, PawelX; Thomas Monjalon; Richardson, Bruce > Cc: dev@dpdk.org; Ouyang, Changchun > Subject: RE: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf rss >=20 > Hi PawelX >=20 > > -----Original Message----- > > From: Wodkowski, PawelX > > Sent: Friday, January 30, 2015 12:14 AM > > To: Ouyang, Changchun; Thomas Monjalon; Richardson, Bruce > > Cc: dev@dpdk.org > > Subject: RE: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf r= ss > > > > > -----Original Message----- > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ouyang, > > Changchun > > > Sent: Wednesday, January 28, 2015 2:35 AM > > > To: Thomas Monjalon > > > Cc: dev@dpdk.org > > > Subject: Re: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf > > > rss > > > > > > Hi Thomas, > > > > > > > -----Original Message----- > > > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > > > Sent: Tuesday, January 27, 2015 8:13 PM > > > > To: Ouyang, Changchun > > > > Cc: dev@dpdk.org > > > > Subject: Re: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in > > > > vf rss > > > > > > > > > To follow up the comments from Wodkowski, PawelX, remove this > > > > > unnecessary check, as check_mq_mode has already check the queue > > > > number > > > > > in device configure stage, if the queue number of vf is not > > > > > correct, it will return error code and exit, so it doesn't need > > > > > check again here in device start stage(note: pf_host_configure is > > > > > called in device start > > > > stage). > > > > > > > > > > This fixes commit 42d2f78abcb77ecb769be4149df550308169ef0f > > > > > > > > > > Signed-off-by: Changchun Ouyang > > > > > > > > Suggested-by: Pawel Wodkowski > > > > Fixes: 42d2f78abcb77 ("configure VF RSS") > > > > > > > > Applied > > > > > > > > > > Thanks very much for the applying! > > > > > > > Changchun, as you are working on ixgbe, maybe you would like to > > > > review some ixgbe patches from others? > > > > > > > > > > No problem, I will try to do it when my bandwidth allows me to do it, > > > :-) Thanks Changchun > > > > Actually I was suggesting exactly opposite direction. Main issue is tha= t the > > sriov field in rte_eth_dev_data is only used by igb and ixgbe drivers. = In > > addition > > rte_eth_dev_check_mq_mode() is specialized for ixgbe driver. > > > > I am thinking about moving sriov from rte_eth_dev_data to driver's priv= ate > > structure or at least move rte_eth_dev_check_mq_mode() to struct > > eth_dev_ops as optional driver configuration step. > > > > What do you think about both steps? >=20 > Good opinion! > I prefer to move rte_eth_dev_check_mq_mode to eth_dev_ops as optional > driver configure, > The reason is that in future other eth type may also need such kind of ch= eck or > even refine some queue number values by their own way, > I can help review your patch after you send out. > Thanks for your enhancing that. >=20 What about about moving sriov from rte_eth_dev_data to driver's private structure? Pawel