All of lore.kernel.org
 help / color / mirror / Atom feed
* How to toggle physical link via ethtool
@ 2021-04-21 12:42 Sunil Kovvuri
  2021-04-21 17:30 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Sunil Kovvuri @ 2021-04-21 12:42 UTC (permalink / raw)
  To: Linux Netdev List, Jakub Kicinski, Andrew Lunn; +Cc: Sunil Goutham

Hi,

Have a query on how to bring down physical link (serdes) for a NIC interface.

I am under assumption that for a SR-IOV NIC, when user executes
"ifconfig eth-pf down",
it should not bring down physical link as there could be virtual
interfaces still active.
Let me know if this assumption itself is wrong.

If the assumption is correct and if user wants to intentionally bring
down physical link for
whatever reasons, then I do not see a way to do this. There are no
commands either in
'ethtool' or 'ip link' to achieve this.

Would it be okay to add a ethtool command similar to 'ethtool
--identify" to toggle physical link.

Thanks,
Sunil.

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

* Re: How to toggle physical link via ethtool
  2021-04-21 12:42 How to toggle physical link via ethtool Sunil Kovvuri
@ 2021-04-21 17:30 ` Jakub Kicinski
  2021-04-23 18:27   ` Sunil Kovvuri
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2021-04-21 17:30 UTC (permalink / raw)
  To: Sunil Kovvuri; +Cc: Linux Netdev List, Andrew Lunn, Sunil Goutham

On Wed, 21 Apr 2021 18:12:16 +0530 Sunil Kovvuri wrote:
> Hi,
> 
> Have a query on how to bring down physical link (serdes) for a NIC interface.
> 
> I am under assumption that for a SR-IOV NIC, when user executes
> "ifconfig eth-pf down",
> it should not bring down physical link as there could be virtual
> interfaces still active.
> Let me know if this assumption itself is wrong.

How VFs operate is really implementation specific, so it'd be
interesting to hear from the vendors but IIUC bringing PF down 
should shut down the link.

What usually keeps the link up is stuff like NC-SI, but not VFs.

> If the assumption is correct and if user wants to intentionally bring
> down physical link for
> whatever reasons, then I do not see a way to do this. There are no
> commands either in
> 'ethtool' or 'ip link' to achieve this.
> 
> Would it be okay to add a ethtool command similar to 'ethtool
> --identify" to toggle physical link.

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

* Re: How to toggle physical link via ethtool
  2021-04-21 17:30 ` Jakub Kicinski
@ 2021-04-23 18:27   ` Sunil Kovvuri
  0 siblings, 0 replies; 3+ messages in thread
From: Sunil Kovvuri @ 2021-04-23 18:27 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: Linux Netdev List, Andrew Lunn, Sunil Goutham

On Wed, Apr 21, 2021 at 11:00 PM Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Wed, 21 Apr 2021 18:12:16 +0530 Sunil Kovvuri wrote:
> > Hi,
> >
> > Have a query on how to bring down physical link (serdes) for a NIC interface.
> >
> > I am under assumption that for a SR-IOV NIC, when user executes
> > "ifconfig eth-pf down",
> > it should not bring down physical link as there could be virtual
> > interfaces still active.
> > Let me know if this assumption itself is wrong.
>
> How VFs operate is really implementation specific, so it'd be
> interesting to hear from the vendors but IIUC bringing PF down
> should shut down the link.
>
> What usually keeps the link up is stuff like NC-SI, but not VFs.
>
Okay.

Thanks,
Sunil.

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

end of thread, other threads:[~2021-04-23 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 12:42 How to toggle physical link via ethtool Sunil Kovvuri
2021-04-21 17:30 ` Jakub Kicinski
2021-04-23 18:27   ` Sunil Kovvuri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.