All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sunil Kovvuri <sunil.kovvuri@gmail.com>
To: Linux Netdev List <netdev@vger.kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Andrew Lunn <andrew@lunn.ch>
Cc: Sunil Goutham <sgoutham@marvell.com>
Subject: How to toggle physical link via ethtool
Date: Wed, 21 Apr 2021 18:12:16 +0530	[thread overview]
Message-ID: <CA+sq2Ce+AW3HUhqxa2Q9+2G0BGTnjuzLdnLLBVfeY=_0s6dANQ@mail.gmail.com> (raw)

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.

             reply	other threads:[~2021-04-21 12:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 12:42 Sunil Kovvuri [this message]
2021-04-21 17:30 ` How to toggle physical link via ethtool Jakub Kicinski
2021-04-23 18:27   ` Sunil Kovvuri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+sq2Ce+AW3HUhqxa2Q9+2G0BGTnjuzLdnLLBVfeY=_0s6dANQ@mail.gmail.com' \
    --to=sunil.kovvuri@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sgoutham@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.