mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-17 05:27:18 +07:00
igb: Fixed Wake On LAN support
This patch fixes Wake on LAN being reported as supported on some Ethernet ports, in contrary to Hardware capability. Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
f1d8cba61c
commit
42ce4126d8
@ -2062,14 +2062,15 @@ static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
|
|||||||
{
|
{
|
||||||
struct igb_adapter *adapter = netdev_priv(netdev);
|
struct igb_adapter *adapter = netdev_priv(netdev);
|
||||||
|
|
||||||
wol->supported = WAKE_UCAST | WAKE_MCAST |
|
|
||||||
WAKE_BCAST | WAKE_MAGIC |
|
|
||||||
WAKE_PHY;
|
|
||||||
wol->wolopts = 0;
|
wol->wolopts = 0;
|
||||||
|
|
||||||
if (!(adapter->flags & IGB_FLAG_WOL_SUPPORTED))
|
if (!(adapter->flags & IGB_FLAG_WOL_SUPPORTED))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
wol->supported = WAKE_UCAST | WAKE_MCAST |
|
||||||
|
WAKE_BCAST | WAKE_MAGIC |
|
||||||
|
WAKE_PHY;
|
||||||
|
|
||||||
/* apply any specific unsupported masks here */
|
/* apply any specific unsupported masks here */
|
||||||
switch (adapter->hw.device_id) {
|
switch (adapter->hw.device_id) {
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user