mediatek: fix PWM fan on BPi-R4
[openwrt/openwrt.git] / target / linux / generic / pending-6.6 / 732-02-net-ethernet-mtk_eth_soc-set-NETIF_F_ALL_TSO.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Fri, 28 Oct 2022 12:54:48 +0200
3 Subject: [PATCH] net: ethernet: mtk_eth_soc: set NETIF_F_ALL_TSO
4
5 Significantly improves performance by avoiding unnecessary segmentation
6
7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 ---
9
10 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
11 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
12 @@ -47,8 +47,7 @@
13 #define MTK_HW_FEATURES (NETIF_F_IP_CSUM | \
14 NETIF_F_RXCSUM | \
15 NETIF_F_HW_VLAN_CTAG_TX | \
16 - NETIF_F_SG | NETIF_F_TSO | \
17 - NETIF_F_TSO6 | \
18 + NETIF_F_SG | NETIF_F_ALL_TSO | \
19 NETIF_F_IPV6_CSUM |\
20 NETIF_F_HW_TC)
21 #define MTK_HW_FEATURES_MT7628 (NETIF_F_SG | NETIF_F_RXCSUM)