]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41f3c1e89fd54c3c80f102973c989424852f9caf
tree12445eb8f4ab8acece9cd96e337ce49b29e3f31a
parent9f42411280feae5c60fda04ec9d5495cecdb2c6e
udp: fix for unicast RX path optimization

Commits 37fe1bbfe6663dcb210f1e6d0fb9fa082ee865f9 and
37fe1bbfe6663dcb210f1e6d0fb9fa082ee865f9 ("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