[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180905184713.4704c9ce@cakuba>
Date: Wed, 5 Sep 2018 18:47:13 +0200
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: "Samudrala, Sridhar" <sridhar.samudrala@...el.com>
Cc: Or Gerlitz <gerlitz.or@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Simon Horman <simon.horman@...ronome.com>,
Andy Gospodarek <andy@...yhouse.net>,
"mchan@...adcom.com" <mchan@...adcom.com>,
Jiri Pirko <jiri@...nulli.us>,
Alexander Duyck <alexander.duyck@...il.com>,
Frederick Botha <frederick.botha@...ronome.com>,
nick viljoen <nick.viljoen@...ronome.com>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: phys_port_id in switchdev mode?
On Wed, 5 Sep 2018 09:20:43 -0700, Samudrala, Sridhar wrote:
> > With this libvirt on Host0 should easily find the actual PF0 netdev to
> > run the NDO on, if it wants to use VFs:
> > - libvrit finds act VF0/0 to plug into the VF;
> > - reads its phys_port_id -> "PF0 SN";
> > - finds netdev with "PF0 SN" linked to physfn -> "act PF0";
> > - runs NDOs on "act PF0" for PF0's VF correctly.
>
> I think Host0 corresponds to embedded OS on the NIC. Is this correct?
> I guess in this setup, only PF0's PCI interface on Host0 is in switchdev mode and
> the representors for PF0 and its VFs are created on Host0 when they come up
> on Host1. I would think PF0 on Host0 acts as a Control PF for PF1 on Host1.
>
> Isn't hypervisor running only on Host1?
The main hypervisor is, but Host0 can very easily want to run some DPI
or some such on flows before it allows them though, and people like
running DPI-like apps in VMs/containers..
> > The other problem remains unsolved - Host0 can't be sure without
> > vendor-specific knowledge whether it's connected to PF0 or PF1.
> > That's why I was thinking maybe we should provide phys_port_id
> > on PF representors as well. That means we'd have to provide the
> > legacy NDOs on PF reprs too because libvirt may now find PF repr...
> > Would it be cleaner to add a new attribute?
> >
> > Should Host0 in bare metal cloud have access to SR-IOV NDOs of Host1?
>
> Do you mean the legacy VF ndo ops on the PF? I think it is possible to configure
> the VFs on Host1 via the port representors except for the MAC address.
Yes, the MAC address would be the only one. Could Host0 care about
which MACs Host1 assigned to its VFs? I'm not sure..
Powered by blists - more mailing lists