On Wed, 2006-06-28 at 13:10 +1000, Herbert Xu wrote:
> On Tue, Jun 27, 2006 at 08:06:47PM -0700, Michael Chan wrote:
> >
> > diff --git a/include/net/sock.h b/include/net/sock.h
> > index 2d8d6ad..2c75172 100644
> > --- a/include/net/sock.h
> > +++ b/include/net/sock.h
> > @@ -1033,7 +1033,8 @@ static inline void sk_setup_caps(struct 
> >     if (sk->sk_route_caps & NETIF_F_GSO)
> >             sk->sk_route_caps |= NETIF_F_TSO;
> >     if (sk->sk_route_caps & NETIF_F_TSO) {
> > -           if (sock_flag(sk, SOCK_NO_LARGESEND) || dst->header_len)
> > +           if ((sock_flag(sk, SOCK_NO_LARGESEND) &&
> > +               !tso_ecn_capable(sk->sk_route_caps)) || dst->header_len)
> >                     sk->sk_route_caps &= ~NETIF_F_TSO;
> 
> Why turn it off? With GSO in place the stack will handle it just fine
> (even your description says so :)  We should instead remove all code
> that turns off TSO/ECN when the other is present.
> 
We need to turn off NETIF_F_TSO for a connection that has negotiated to
turn on ECN if the output device cannot handle TSO and ECN.  In other
words, if the output device does not have either GSO or TSO_ECN feature
set.

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to