|
@@ -781,8 +781,14 @@ static void ipgre_link_update(struct net_device *dev, bool set_mtu)
|
|
|
tunnel->encap.type == TUNNEL_ENCAP_NONE) {
|
|
|
dev->features |= NETIF_F_GSO_SOFTWARE;
|
|
|
dev->hw_features |= NETIF_F_GSO_SOFTWARE;
|
|
|
+ } else {
|
|
|
+ dev->features &= ~NETIF_F_GSO_SOFTWARE;
|
|
|
+ dev->hw_features &= ~NETIF_F_GSO_SOFTWARE;
|
|
|
}
|
|
|
dev->features |= NETIF_F_LLTX;
|
|
|
+ } else {
|
|
|
+ dev->hw_features &= ~NETIF_F_GSO_SOFTWARE;
|
|
|
+ dev->features &= ~(NETIF_F_LLTX | NETIF_F_GSO_SOFTWARE);
|
|
|
}
|
|
|
}
|
|
|
|