Skip to content

Add WAKE_MDA Wake-on-LAN option

Florian Fainelli netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ethtool: Introduce WAKE_MDADocumentation/networking/ethtool-netlink.rst include/uapi/linux/ethtool.h include/uapi/linux/ethtool_netlink.h +3 more+38 -48 replies
1/2update UAPI header copies for WAKE_MDA supportuapi/linux/ethtool.h uapi/linux/ethtool_netlink.h+9 -20 replies
2/2net: phy: broadcom: Add support for WAKE_MDAdrivers/net/phy/bcm-phy-lib.c+6 -10 replies
2/2wol: Add support for WAKE_MDAcommon.c ethtool.8.in ethtool.c +3 more+73 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] Add WAKE_MDA Wake-on-LAN option

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

https://lore.kernel.org/all/[email protected]/

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(-)
Signature · 1 line
2.34.1