mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
ip_gre: propogate target device GSO capability to the tunnel device
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aa0e51cdda
commit
eb6b9a8cad
1 changed files with 8 additions and 2 deletions
|
@ -1103,8 +1103,14 @@ 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)) {
|
||||
dev->features |= NETIF_F_GSO_SOFTWARE;
|
||||
dev->hw_features |= NETIF_F_GSO_SOFTWARE;
|
||||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue