From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [patch net-next] nfp: flower: set sysfs link to device for representors Date: Thu, 17 May 2018 10:51:23 -0700 Message-ID: <20180517105123.7fea2de0@cakuba> References: <20180517100520.23971-1-jiri@resnulli.us> <20180517124210.GS1972@nanopsycho> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Linux Netdev List , David Miller , Simon Horman , Dirk van der Merwe , John Hurley , Pieter Jansen van Vuuren , oss-drivers@netronome.com, Jan Gutter To: Jiri Pirko , Or Gerlitz Return-path: Received: from mail-pl0-f67.google.com ([209.85.160.67]:37850 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbeEQRv1 (ORCPT ); Thu, 17 May 2018 13:51:27 -0400 Received: by mail-pl0-f67.google.com with SMTP id w19-v6so2977353plq.4 for ; Thu, 17 May 2018 10:51:26 -0700 (PDT) In-Reply-To: <20180517124210.GS1972@nanopsycho> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 17 May 2018 14:42:10 +0200, Jiri Pirko wrote: > Thu, May 17, 2018 at 02:25:14PM CEST, gerlitz.or@gmail.com wrote: > >On Thu, May 17, 2018 at 1:05 PM, Jiri Pirko wrote: > >> From: Jiri Pirko > >> > >> Do this so the sysfs has "device" link correctly set. > > > >please no > > > >This is likely to create bunch of issues with respect to how libvirt > >deals with the representors. > > Once netdev is there because of some probed pci device, this link should > be set. That is one of the basics. > > What "bunch of issues" are you talking about? Please be specific. Libvirt may pick any device under sys/bus/pci/devices/$vf/physfn/net/ to run legacy SR-IOV NDOs on. nfp currently exposes those on all representors. Or correctly points out that running SR-IOV NDOs on non-PF reprs makes very limited amount of sense and we should fix libvirt and remove the NDOs for non-PF nfp reprs. AFAICT since nfp does provide the NDOs on all reprs nothing should break with this patch, but ip link will now start listing VF state on each representor. Meaning that if we have 100 VFs enabled simple "ip link list" will produce upwards of 10,000 lines of output.