mediatek: add v4.19 support
[openwrt/staging/lynxis.git] / target / linux / mediatek / base-files / etc / hotplug.d / iface / 99-mtk-lro
1 [ ifup = "$ACTION" ] && {
2 [ -n "$DEVICE" ] && {
3 if [ "$INTERFACE" == "lan" ]; then
4 if [ -f /usr/sbin/ethtool ]; then
5 ifname=eth0
6 lan_ip=`uci -q get network.lan.ipaddr`
7 ethdrv=`ethtool -i $ifname | grep mtk_soc_eth`
8 [ -n "$ethdrv" ] && {
9 ethtool -N $ifname flow-type tcp4 dst-ip $lan_ip loc 0
10 }
11 fi
12 fi
13 }
14 }