r8169: keep pause settings on interface down/up cycle
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 15 Apr 2021 18:59:47 +0000 (20:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Apr 2021 21:02:48 +0000 (14:02 -0700)
commit11ac4e668a449af328379f9fb2e1712357d2eca5
treeaf5280064445955817854f20177da1b4ed8abf9b
parent8203c7ce4ef2840929d38b447b4ccd384727f92b
r8169: keep pause settings on interface down/up cycle

Currently, if the user changes the pause settings, the default settings
will be restored after an interface down/up cycle, and also when
resuming from suspend. This doesn't seem to provide the best user
experience. Change this to keep user settings, and just ensure that in
jumbo mode pause is disabled.
Small drawback: When switching back mtu from jumbo to non-jumbo then
pause remains disabled (but user can enable it using ethtool).
I think that's a not too common scenario and acceptable.

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