r8169: improve handling of TD_MSS_MAX
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 29 Mar 2020 16:28:45 +0000 (18:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:44:53 +0000 (11:44 -0700)
commit4abc3c04810bab77ae5779adc9f6abb5dad4ac6f
tree60c4128b61db00604e67e9a40aa137ee2a25c1b3
parent3288dffc5dd82c81adfdaf857886d1e06389017b
r8169: improve handling of TD_MSS_MAX

If the mtu is greater than TD_MSS_MAX, then TSO is disabled, see
rtl8169_fix_features(). Because mss is less than mtu, we can't have
the case mss > TD_MSS_MAX in the TSO path.

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