From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mintz, Yuval" Subject: RE: [PATCH net-next 02/12] nfp: set driver VF limit Date: Sun, 28 May 2017 14:49:58 +0000 Message-ID: References: <20170528003411.17603-1-jakub.kicinski@netronome.com> <20170528003411.17603-3-jakub.kicinski@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "oss-drivers@netronome.com" To: Jakub Kicinski , "netdev@vger.kernel.org" Return-path: Received: from mail-sn1nam02on0081.outbound.protection.outlook.com ([104.47.36.81]:31150 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750825AbdE1OuB (ORCPT ); Sun, 28 May 2017 10:50:01 -0400 In-Reply-To: <20170528003411.17603-3-jakub.kicinski@netronome.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: > pf->limit_vfs =3D nfp_rtsym_read_le(pf->cpp, "nfd_vf_cfg_max_vfs", > &err); > if (!err) > - return; > + return pci_sriov_set_totalvfs(pf->pdev, pf->limit_vfs); While you're at it, If you're going to enforce the limit at the PCI level, shouldn't you retire 'limit_vfs' altogether? BTW, under which conditions would you expect to find a difference in the maximal number of VFs?