]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: core: add member wol_enabled to struct net_device
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 24 Sep 2018 19:58:59 +0000 (21:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2018 03:04:11 +0000 (20:04 -0700)
commit6194114324139dc16f3251c67ed853bd6d4ae056
tree5bf8ef329dbde8f6edfb6c370b4ae73baed015e9
parentd31d1d03aa909aa6257d9d581eb0eb5d0ed366e2
net: core: add member wol_enabled to struct net_device

Add flag wol_enabled to struct net_device indicating whether
Wake-on-LAN is enabled. As first user phy_suspend() will use it to
decide whether PHY can be suspended or not.

Fixes: f1e911d5d0df ("r8169: add basic phylib support")
Fixes: e8cfd9d6c772 ("net: phy: call state machine synchronously in phy_stop")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/ethtool.c