All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Add WAKE_MDA Wake-on-LAN option
@ 2023-10-11 22:12 Florian Fainelli
  2023-10-11 22:12 ` [PATCH net-next 1/2] ethtool: Introduce WAKE_MDA Florian Fainelli
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Florian Fainelli @ 2023-10-11 22:12 UTC (permalink / raw)
  To: netdev
  Cc: Florian Fainelli, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Jonathan Corbet,
	Broadcom internal kernel review list, Andrew Lunn,
	Heiner Kallweit, Russell King, opendmb, justin.chen,
	Michal Kubecek

[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]

This is a follow-up to the patch series previously submitted here:

https://lore.kernel.org/all/20230516231713.2882879-1-florian.fainelli@broadcom.com/

which is now implementing the approach suggested by Andrew. This patch
series adds a new Wake-on-LAN option (WAKE_MDA) with the single letter
'e' (all of the 'm', 'd' and 'a' were already taken) which allows us to
specify a custom destination MAC to be waking from.

For the ioctl-based interface we use an anonymous union to overlay a
6-byte MAC DA field with the existing sopass field.

This is particularly useful for systems that use Ethernet PHYs as
wake-up devices and when waking up on coarse filters like multicast,
broadcast destination MAC addresses is not enough to keep them in a low
power state.

We use this on Set-top-box environments in order to allow waking-up from
only specific IPv4/v6 multicast groups like mDNS for instance. Printers,
smart speaker and IoT devices could fall in that category as well.
Example:

ethtool -s eth0 wol e mac-da 01:00:5e:00:00:fb

ethtool patches are sent as a reply to this thread.

Florian Fainelli (2):
  ethtool: Introduce WAKE_MDA
  net: phy: broadcom: Add support for WAKE_MDA

 Documentation/networking/ethtool-netlink.rst |  7 ++++++-
 drivers/net/phy/bcm-phy-lib.c                |  7 ++++++-
 include/uapi/linux/ethtool.h                 | 10 ++++++++--
 include/uapi/linux/ethtool_netlink.h         |  1 +
 net/ethtool/common.c                         |  1 +
 net/ethtool/netlink.h                        |  2 +-
 net/ethtool/wol.c                            | 21 ++++++++++++++++++++
 7 files changed, 44 insertions(+), 5 deletions(-)

-- 
2.34.1


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

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

end of thread, other threads:[~2023-10-13 16:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 22:12 [PATCH net-next 0/2] Add WAKE_MDA Wake-on-LAN option Florian Fainelli
2023-10-11 22:12 ` [PATCH net-next 1/2] ethtool: Introduce WAKE_MDA Florian Fainelli
2023-10-11 23:08   ` Michal Kubecek
2023-10-12  0:21     ` Florian Fainelli
2023-10-12 12:45       ` Andrew Lunn
2023-10-12 18:32         ` Florian Fainelli
2023-10-12 20:24           ` Andrew Lunn
2023-10-12 21:02             ` Florian Fainelli
2023-10-12 21:18               ` Andrew Lunn
2023-10-13 16:15                 ` Florian Fainelli
2023-10-11 22:12 ` [PATCH ethtool 1/2] update UAPI header copies for WAKE_MDA support Florian Fainelli
2023-10-11 22:12 ` [PATCH net-next 2/2] net: phy: broadcom: Add support for WAKE_MDA Florian Fainelli
2023-10-11 22:12 ` [PATCH ethtool 2/2] wol: " Florian Fainelli

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.