r8169: respect EEE user setting when restarting network
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 10 Nov 2019 13:44:54 +0000 (14:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 00:07:03 +0000 (16:07 -0800)
commit7ec3f872bc85ada93db34448d73bb399d6b82c2c
tree1ae1d34a4d92b2a36e165280e490b5465190edf5
parent0c06d166eacdb3176fbce589d44ffe810a95ab97
r8169: respect EEE user setting when restarting network

Currently, if network is re-started, we advertise all supported EEE
modes, thus potentially overriding a manual adjustment the user made
e.g. via ethtool. Be friendly to the user and preserve a manual
setting on network re-start.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c