]> git.baikalelectronics.ru Git - kernel.git/commit
qede: Allow WoL to activate by default
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Sun, 21 May 2017 09:10:52 +0000 (12:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 16:56:53 +0000 (12:56 -0400)
commit038755cafc1754f989f0b9614f86ffaaaf010f37
tree00c7bce9c002e55fbc44d5502086961d9443aa4b
parent4b2dd9a8f84c7f2b1bd872cc1b457a6d5a865ea9
qede: Allow WoL to activate by default

When management firmware declares that the device is WoL-capable,
the default driver behavior would be to allow the management firmware
to take the decision of whether it's actually needed or not.

Problem is ethtool interface doesn't have a 'default' kind
of option, and user would see the interface WoL as disabled,
which doesn't accurately reflect the actual configuration.
More-so, if the user actually wants to explicitly disable WoL he'd have
to first enable it [otherwise ethtool would block the command].

Instead of allowing management to make the decision, enable WoL by
default on all devices capable of it.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c