From: Heiner Kallweit Date: Wed, 23 Oct 2019 19:09:34 +0000 (+0200) Subject: r8169: align fix_features callback with vendor driver X-Git-Tag: v5.5-rc1~174^2~316 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7cb83b21fd3bb9a27b1a00a2a8b436761e969f0b;p=users%2Fdwmw2%2Flinux.git r8169: align fix_features callback with vendor driver This patch aligns the fix_features callback with the vendor driver and also disables IPv6 HW checksumming and TSO if jumbo packets are used on RTL8101/RTL8168/RTL8125. Signed-off-by: Heiner Kallweit Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index c317af9c60e96..43ffd4f49c091 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -1558,7 +1558,7 @@ static netdev_features_t rtl8169_fix_features(struct net_device *dev, if (dev->mtu > JUMBO_1K && tp->mac_version > RTL_GIGA_MAC_VER_06) - features &= ~NETIF_F_IP_CSUM; + features &= ~(NETIF_F_CSUM_MASK | NETIF_F_ALL_TSO); return features; }