netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Correct interpretation of VF link-state=auto
@ 2021-06-15 10:34 Íñigo Huguet
  2021-06-18 15:21 ` Íñigo Huguet
  2021-06-18 16:35 ` Jakub Kicinski
  0 siblings, 2 replies; 5+ messages in thread
From: Íñigo Huguet @ 2021-06-15 10:34 UTC (permalink / raw)
  To: netdev; +Cc: Ivan Vecera, Edward Harold Cree, Dinan Gunawardena, Pablo Cascon

Hi,

Regarding link-state attribute for a VF, 'man ip-link' says:
state auto|enable|disable - set the virtual link state as seen by the
specified VF. Setting to auto means a reflection of the PF link state,
enable lets the VF to communicate with other VFs on this host even if
the PF link state is down, disable causes the HW to drop any packets
sent by the VF.

However, I've seen that different interpretations are made about that
explanation, especially about "auto" configuration. It is not clear if
it should follow PF "physical link status" or PF "administrative link
status". With the latter, `ip set PF down` would put the VF down too,
but with the former you'd have to disconnect the physical port.

Thanks
-- 
Íñigo Huguet


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Correct interpretation of VF link-state=auto
  2021-06-15 10:34 Correct interpretation of VF link-state=auto Íñigo Huguet
@ 2021-06-18 15:21 ` Íñigo Huguet
  2021-06-18 16:35 ` Jakub Kicinski
  1 sibling, 0 replies; 5+ messages in thread
From: Íñigo Huguet @ 2021-06-18 15:21 UTC (permalink / raw)
  To: netdev; +Cc: Ivan Vecera, Edward Harold Cree, Dinan Gunawardena, Pablo Cascon

On Tue, Jun 15, 2021 at 12:34 PM Íñigo Huguet <ihuguet@redhat.com> wrote:
>
> Hi,
>
> Regarding link-state attribute for a VF, 'man ip-link' says:
> state auto|enable|disable - set the virtual link state as seen by the
> specified VF. Setting to auto means a reflection of the PF link state,
> enable lets the VF to communicate with other VFs on this host even if
> the PF link state is down, disable causes the HW to drop any packets
> sent by the VF.
>
> However, I've seen that different interpretations are made about that
> explanation, especially about "auto" configuration. It is not clear if
> it should follow PF "physical link status" or PF "administrative link
> status". With the latter, `ip set PF down` would put the VF down too,
> but with the former you'd have to disconnect the physical port.
>
> Thanks

Hello,

Sorry for bumping, anybody has any idea that could help?
-- 
Íñigo Huguet


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Correct interpretation of VF link-state=auto
  2021-06-15 10:34 Correct interpretation of VF link-state=auto Íñigo Huguet
  2021-06-18 15:21 ` Íñigo Huguet
@ 2021-06-18 16:35 ` Jakub Kicinski
  2021-06-18 19:10   ` Keller, Jacob E
  1 sibling, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2021-06-18 16:35 UTC (permalink / raw)
  To: Íñigo Huguet
  Cc: netdev, Ivan Vecera, Edward Harold Cree, Dinan Gunawardena, Pablo Cascon

On Tue, 15 Jun 2021 12:34:00 +0200 Íñigo Huguet wrote:
> Hi,
> 
> Regarding link-state attribute for a VF, 'man ip-link' says:
> state auto|enable|disable - set the virtual link state as seen by the
> specified VF. Setting to auto means a reflection of the PF link state,
> enable lets the VF to communicate with other VFs on this host even if
> the PF link state is down, disable causes the HW to drop any packets
> sent by the VF.
> 
> However, I've seen that different interpretations are made about that
> explanation, especially about "auto" configuration. It is not clear if
> it should follow PF "physical link status" or PF "administrative link
> status". With the latter, `ip set PF down` would put the VF down too,
> but with the former you'd have to disconnect the physical port.

Like all legacy SR-IOV networking the correct thing to do here is clear
as mud. I'd go for the link status of the PF netdev. If the netdev
cannot pass traffic (either for administrative or physical link reasons)
then VFs shouldn't talk either. But as I said, every vendor will have their
own interpretation, and different users may expect different things...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Correct interpretation of VF link-state=auto
  2021-06-18 16:35 ` Jakub Kicinski
@ 2021-06-18 19:10   ` Keller, Jacob E
  2021-06-21 15:12     ` Íñigo Huguet
  0 siblings, 1 reply; 5+ messages in thread
From: Keller, Jacob E @ 2021-06-18 19:10 UTC (permalink / raw)
  To: Jakub Kicinski, Íñigo Huguet
  Cc: netdev, Ivan Vecera, Edward Harold Cree, Dinan Gunawardena, Pablo Cascon



> -----Original Message-----
> From: Jakub Kicinski <kuba@kernel.org>
> Sent: Friday, June 18, 2021 9:35 AM
> To: Íñigo Huguet <ihuguet@redhat.com>
> Cc: netdev@vger.kernel.org; Ivan Vecera <ivecera@redhat.com>; Edward Harold
> Cree <ecree@xilinx.com>; Dinan Gunawardena <dinang@xilinx.com>; Pablo
> Cascon <pabloc@xilinx.com>
> Subject: Re: Correct interpretation of VF link-state=auto
> 
> On Tue, 15 Jun 2021 12:34:00 +0200 Íñigo Huguet wrote:
> > Hi,
> >
> > Regarding link-state attribute for a VF, 'man ip-link' says:
> > state auto|enable|disable - set the virtual link state as seen by the
> > specified VF. Setting to auto means a reflection of the PF link state,
> > enable lets the VF to communicate with other VFs on this host even if
> > the PF link state is down, disable causes the HW to drop any packets
> > sent by the VF.
> >
> > However, I've seen that different interpretations are made about that
> > explanation, especially about "auto" configuration. It is not clear if
> > it should follow PF "physical link status" or PF "administrative link
> > status". With the latter, `ip set PF down` would put the VF down too,
> > but with the former you'd have to disconnect the physical port.
> 
> Like all legacy SR-IOV networking the correct thing to do here is clear
> as mud. I'd go for the link status of the PF netdev. If the netdev
> cannot pass traffic (either for administrative or physical link reasons)
> then VFs shouldn't talk either. But as I said, every vendor will have their
> own interpretation, and different users may expect different things...

I like this interpretation too.. but I agree that it's unfortunately confusing and each vendor has done something different.. :(

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Correct interpretation of VF link-state=auto
  2021-06-18 19:10   ` Keller, Jacob E
@ 2021-06-21 15:12     ` Íñigo Huguet
  0 siblings, 0 replies; 5+ messages in thread
From: Íñigo Huguet @ 2021-06-21 15:12 UTC (permalink / raw)
  To: Keller, Jacob E
  Cc: Jakub Kicinski, netdev, Ivan Vecera, Edward Harold Cree,
	Dinan Gunawardena, Pablo Cascon

On Fri, Jun 18, 2021 at 6:35 PM Jakub Kicinski <kuba@kernel.org> wrote:
> Like all legacy SR-IOV networking the correct thing to do here is clear
> as mud. I'd go for the link status of the PF netdev. If the netdev
> cannot pass traffic (either for administrative or physical link reasons)
> then VFs shouldn't talk either. But as I said, every vendor will have their
> own interpretation, and different users may expect different things...

On Fri, Jun 18, 2021 at 9:10 PM Keller, Jacob E
<jacob.e.keller@intel.com> wrote:
> I like this interpretation too.. but I agree that it's unfortunately confusing and each vendor has done something different.. :(

Thanks Jakub and Keller, at least now it's clear that it's not clear :P

Good enough info to move forward, for me.
-- 
Íñigo Huguet


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-21 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 10:34 Correct interpretation of VF link-state=auto Íñigo Huguet
2021-06-18 15:21 ` Íñigo Huguet
2021-06-18 16:35 ` Jakub Kicinski
2021-06-18 19:10   ` Keller, Jacob E
2021-06-21 15:12     ` Íñigo Huguet

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).