diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-06-12 14:36:42 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-06-12 14:36:42 -0700 |
commit | 3d7dbeac58d0669c37e35a3b91bb41c0146395ce (patch) | |
tree | 8392d2e576f07635bda9684b2d65629ee40ecbab /net/ipv4 | |
parent | 606f585e363527da9feaed79465132c0c661fd9e (diff) | |
download | linux-3.10-3d7dbeac58d0669c37e35a3b91bb41c0146395ce.tar.gz linux-3.10-3d7dbeac58d0669c37e35a3b91bb41c0146395ce.tar.bz2 linux-3.10-3d7dbeac58d0669c37e35a3b91bb41c0146395ce.zip |
[TCP]: Disable TSO if MD5SIG is enabled.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 97e294e8267..354721d67f6 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -878,6 +878,7 @@ int tcp_v4_md5_do_add(struct sock *sk, __be32 addr, kfree(newkey); return -ENOMEM; } + sk->sk_route_caps &= ~NETIF_F_GSO_MASK; } if (tcp_alloc_md5sig_pool() == NULL) { kfree(newkey); @@ -1007,7 +1008,7 @@ static int tcp_v4_parse_md5_keys(struct sock *sk, char __user *optval, return -EINVAL; tp->md5sig_info = p; - + sk->sk_route_caps &= ~NETIF_F_GSO_MASK; } newkey = kmemdup(cmd.tcpm_key, cmd.tcpm_keylen, GFP_KERNEL); |