* [patch net-next] nfp: flower: set sysfs link to device for representors
@ 2018-05-17 10:05 Jiri Pirko
2018-05-17 12:25 ` Or Gerlitz
2018-05-21 15:49 ` David Miller
0 siblings, 2 replies; 5+ messages in thread
From: Jiri Pirko @ 2018-05-17 10:05 UTC (permalink / raw)
To: netdev
Cc: davem, jakub.kicinski, simon.horman, dirk.vandermerwe,
john.hurley, pieter.jansenvanvuuren, oss-drivers
From: Jiri Pirko <jiri@mellanox.com>
Do this so the sysfs has "device" link correctly set.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
---
drivers/net/ethernet/netronome/nfp/flower/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/netronome/nfp/flower/main.c b/drivers/net/ethernet/netronome/nfp/flower/main.c
index 4e67c0cbf9f0..976ed112387d 100644
--- a/drivers/net/ethernet/netronome/nfp/flower/main.c
+++ b/drivers/net/ethernet/netronome/nfp/flower/main.c
@@ -267,6 +267,7 @@ nfp_flower_spawn_vnic_reprs(struct nfp_app *app,
app->pf->vf_cfg_mem + i * NFP_NET_CFG_BAR_SZ;
}
+ SET_NETDEV_DEV(repr, &priv->nn->pdev->dev);
eth_hw_addr_random(repr);
port_id = nfp_flower_cmsg_pcie_port(nfp_pcie, vnic_type,
--
2.14.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [patch net-next] nfp: flower: set sysfs link to device for representors
2018-05-17 10:05 [patch net-next] nfp: flower: set sysfs link to device for representors Jiri Pirko
@ 2018-05-17 12:25 ` Or Gerlitz
2018-05-17 12:42 ` Jiri Pirko
2018-05-21 15:49 ` David Miller
1 sibling, 1 reply; 5+ messages in thread
From: Or Gerlitz @ 2018-05-17 12:25 UTC (permalink / raw)
To: Jiri Pirko
Cc: Linux Netdev List, David Miller, Jakub Kicinski, Simon Horman,
Dirk van der Merwe, John Hurley, Pieter Jansen van Vuuren,
oss-drivers
On Thu, May 17, 2018 at 1:05 PM, Jiri Pirko <jiri@resnulli.us> wrote:
> From: Jiri Pirko <jiri@mellanox.com>
>
> 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.
We were discussing it off list between nfp and mlnx driver people. We
need to put
the open stack folks and kernel developers into the same thread. I can
make a post
on that next week
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch net-next] nfp: flower: set sysfs link to device for representors
2018-05-17 12:25 ` Or Gerlitz
@ 2018-05-17 12:42 ` Jiri Pirko
2018-05-17 17:51 ` Jakub Kicinski
0 siblings, 1 reply; 5+ messages in thread
From: Jiri Pirko @ 2018-05-17 12:42 UTC (permalink / raw)
To: Or Gerlitz
Cc: Linux Netdev List, David Miller, Jakub Kicinski, Simon Horman,
Dirk van der Merwe, John Hurley, Pieter Jansen van Vuuren,
oss-drivers
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 <jiri@resnulli.us> wrote:
>> From: Jiri Pirko <jiri@mellanox.com>
>>
>> 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.
>
>We were discussing it off list between nfp and mlnx driver people. We
>need to put
>the open stack folks and kernel developers into the same thread. I can
>make a post
>on that next week
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch net-next] nfp: flower: set sysfs link to device for representors
2018-05-17 12:42 ` Jiri Pirko
@ 2018-05-17 17:51 ` Jakub Kicinski
0 siblings, 0 replies; 5+ messages in thread
From: Jakub Kicinski @ 2018-05-17 17:51 UTC (permalink / raw)
To: Jiri Pirko, Or Gerlitz
Cc: Linux Netdev List, David Miller, Simon Horman, Dirk van der Merwe,
John Hurley, Pieter Jansen van Vuuren, oss-drivers, Jan Gutter
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 <jiri@resnulli.us> wrote:
> >> From: Jiri Pirko <jiri@mellanox.com>
> >>
> >> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch net-next] nfp: flower: set sysfs link to device for representors
2018-05-17 10:05 [patch net-next] nfp: flower: set sysfs link to device for representors Jiri Pirko
2018-05-17 12:25 ` Or Gerlitz
@ 2018-05-21 15:49 ` David Miller
1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2018-05-21 15:49 UTC (permalink / raw)
To: jiri
Cc: netdev, jakub.kicinski, simon.horman, dirk.vandermerwe,
john.hurley, pieter.jansenvanvuuren, oss-drivers
From: Jiri Pirko <jiri@resnulli.us>
Date: Thu, 17 May 2018 12:05:20 +0200
> From: Jiri Pirko <jiri@mellanox.com>
>
> Do this so the sysfs has "device" link correctly set.
>
> Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Please sort out the non-PF representor issue with Or and Jakub.
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-05-21 15:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-17 10:05 [patch net-next] nfp: flower: set sysfs link to device for representors Jiri Pirko
2018-05-17 12:25 ` Or Gerlitz
2018-05-17 12:42 ` Jiri Pirko
2018-05-17 17:51 ` Jakub Kicinski
2018-05-21 15:49 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).