Loading net/ipv4/ip_gre.c +8 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
net/ipv4/ip_gre.c +8 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading