diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2010-04-08 06:56:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-08 20:29:13 +0200 |
commit | 1223c67c0938d2df309fde618bd82c87c8c1af04 (patch) | |
tree | 12445eb8f4ab8acece9cd96e337ce49b29e3f31a /net/ipv6/udp.c | |
parent | myri10ge: fix rx_pause in myri10ge_set_pauseparam (diff) | |
download | linux-1223c67c0938d2df309fde618bd82c87c8c1af04.tar.xz linux-1223c67c0938d2df309fde618bd82c87c8c1af04.zip |
udp: fix for unicast RX path optimization
Commits 5051ebd275de672b807c28d93002c2fb0514a3c9 and
5051ebd275de672b807c28d93002c2fb0514a3c9 ("ipv[46]: udp: optimize unicast RX
path") broke some programs.
After upgrading a L2TP server to 2.6.33 it started to fail, tunnels going up an
down, after the 10th tunnel came up. My modified rp-l2tp uses a global
unconnected socket bound to (INADDR_ANY, 1701) and one connected socket per
tunnel after parameter negotiation.
After ten sockets were open and due to mixed parameters to
udp[46]_lib_lookup2() kernel started to drop packets.
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/ipv6/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 3c0c9c755c92..787e480cc096 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -258,8 +258,8 @@ static struct sock *__udp6_lib_lookup(struct net *net, if (hslot->count < hslot2->count) goto begin; - result = udp6_lib_lookup2(net, &in6addr_any, sport, - daddr, hnum, dif, + result = udp6_lib_lookup2(net, saddr, sport, + &in6addr_any, hnum, dif, hslot2, slot2); } rcu_read_unlock(); |