udp: fix for unicast RX path optimization
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Thu, 8 Apr 2010 04:56:48 +0000 (04:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2010 18:29:13 +0000 (11:29 -0700)
commit1223c67c0938d2df309fde618bd82c87c8c1af04
tree12445eb8f4ab8acece9cd96e337ce49b29e3f31a
parent2488f56d3699b84ee51d2940d1347345b8f9b0e1
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>
net/ipv4/udp.c
net/ipv6/udp.c