Commit eb6b9a8c authored by Dmitry Kravkov's avatar Dmitry Kravkov Committed by David S. Miller

ip_gre: propogate target device GSO capability to the tunnel device

Signed-off-by: default avatarDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aa0e51cd
......@@ -1103,9 +1103,15 @@ static int ipgre_tunnel_bind_dev(struct net_device *dev)
tunnel->hlen = addend;
/* TCP offload with GRE SEQ is not supported. */
if (!(tunnel->parms.o_flags & GRE_SEQ)) {
/* device supports enc gso offload*/
if (tdev->hw_enc_features & NETIF_F_GRE_GSO) {
dev->features |= NETIF_F_TSO;
dev->hw_features |= NETIF_F_TSO;
} else {
dev->features |= NETIF_F_GSO_SOFTWARE;
dev->hw_features |= NETIF_F_GSO_SOFTWARE;
}
}
return mtu;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment