netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: Michael Chan <michael.chan@broadcom.com>
Cc: Vasundhara Volam <vasundhara-v.volam@broadcom.com>,
	David Miller <davem@davemloft.net>,
	Jiri Pirko <jiri@mellanox.com>, Netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next RFC 7/7] bnxt_en: Add bnxt_en initial port params table and register it
Date: Thu, 6 Dec 2018 02:36:48 -0800	[thread overview]
Message-ID: <20181206023648.6a7bbdfb@cakuba.netronome.com> (raw)
In-Reply-To: <CACKFLinKxO64nx8ewEEO726dzvSMTr29W3_6kmqVFzunkVLq4A@mail.gmail.com>

On Thu, 6 Dec 2018 00:57:05 -0800, Michael Chan wrote:
> On Wed, Dec 5, 2018 at 11:11 PM Jakub Kicinski wrote:
> >
> > On Wed, 5 Dec 2018 22:41:43 -0800, Michael Chan wrote:  
> > >
> > > It will be in the BIOS only for a LOM, I think.  For a NIC, it should
> > > be in the NIC's NVRAM.  
> >
> > This is all vague.  Could you please clearly state the use case.
> >  
> Well, the WoL setting's use case should be quite simple, right?  If
> the card's NVRAM WoL setting is ON, when you plug the card in a slot
> that has Vaux power, it will assert PME# when a magic packet is
> received.  Again, the WoL setting in this context is similar to other
> power up settings such as PCIe Gen2 or Gen3.

If there was some configuration of PME# involved, maybe, but
basic networking configuration has its APIs already.

> Let's say the power up setting is ON and it boots up to Linux for the
> first time after receiving a magic packet.  The Linux user can then
> run ethtool -s to set the driver's non persistent WoL setting.  It can
> be the same as the NVRAM's power up setting, or different.  Ethtool
> may support additional WoL packet types that the power up setting does
> not support.  Let's say the Linux user sets the ethtool WoL setting to
> OFF and shuts down the system.  That card now will not wake up the
> system.  But if there is a power failure and power comes back on
> later, the card will lose the ethtool setting and go back to the power
> up WoL setting, which is ON in this example.

So in your example there is a machine with a 25/40/100G NIC that
doesn't have any remote BMC control, and connected to a L2 network
where a magic packet can be received.

In my experience machines are either low end/embedded and they just
boot on power on fully (to Linux), or they are proper machines which
support IPMI etc.

If you could illuminate the use case some more I'd really appreciate
that.  In your hypothetical scenario you still have to get the link
up, so if we apply this patch a logical extension would be to add all
ethtool link settings as devlink parameters as well.  Florian recently
added an option to wake based on a packet that matched an n-tuple
filter.  If your use case is legit, doing the same thing with n-tuple
filters instead of Magic Packets is very much legit, too.  So we will
poke n-tuple filters via devlink params?

  parent reply	other threads:[~2018-12-06 10:37 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-05  5:56 [PATCH net-next RFC 0/7] Add configuration parameters support for devlink_port Vasundhara Volam
2018-12-05  5:56 ` [PATCH net-next RFC 1/7] devlink: Add devlink_param for port register and unregister Vasundhara Volam
2018-12-05 11:47   ` Jiri Pirko
2018-12-06  6:02     ` Vasundhara Volam
2018-12-06  7:06       ` Jiri Pirko
2018-12-06  7:26         ` Vasundhara Volam
2018-12-10  9:21     ` Vasundhara Volam
2018-12-10 11:29       ` Jiri Pirko
2018-12-05  5:56 ` [PATCH net-next RFC 2/7] devlink: Add port param get command Vasundhara Volam
2018-12-05 11:51   ` Jiri Pirko
2018-12-05  5:56 ` [PATCH net-next RFC 3/7] devlink: Add port param set command Vasundhara Volam
2018-12-05 12:13   ` Jiri Pirko
2018-12-05  5:56 ` [PATCH net-next RFC 4/7] devlink: Add support for get/set driverinit value for devlink_port Vasundhara Volam
2018-12-05 12:59   ` Jiri Pirko
2018-12-05  5:56 ` [PATCH net-next RFC 5/7] devlink: Add devlink notifications support for port params Vasundhara Volam
2018-12-05 13:02   ` Jiri Pirko
2018-12-05  5:56 ` [PATCH net-next RFC 6/7] devlink: Add a boolean generic port parameter Vasundhara Volam
2018-12-05 13:04   ` Jiri Pirko
2018-12-05  5:57 ` [PATCH net-next RFC 7/7] bnxt_en: Add bnxt_en initial port params table and register it Vasundhara Volam
2018-12-05 13:05   ` Jiri Pirko
2018-12-05 23:33   ` Jakub Kicinski
2018-12-06  0:01     ` Michael Chan
2018-12-06  0:42       ` Jakub Kicinski
2018-12-06  1:18         ` Michael Chan
2018-12-06  6:00           ` Jakub Kicinski
2018-12-06  6:41             ` Michael Chan
2018-12-06  7:11               ` Jakub Kicinski
2018-12-06  8:57                 ` Michael Chan
2018-12-06  9:03                   ` Jiri Pirko
2018-12-06 10:31                     ` Vasundhara Volam
2018-12-06 11:11                       ` Jiri Pirko
2018-12-06 10:36                   ` Jakub Kicinski [this message]
2018-12-06 11:00                     ` Michael Chan

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=20181206023648.6a7bbdfb@cakuba.netronome.com \
    --to=jakub.kicinski@netronome.com \
    --cc=davem@davemloft.net \
    --cc=jiri@mellanox.com \
    --cc=michael.chan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=vasundhara-v.volam@broadcom.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 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).