]> git.baikalelectronics.ru Git - kernel.git/commit
udp: add missing rehash callback to udplite
authorAlexey Kodanev <alexey.kodanev@oracle.com>
Wed, 16 Jan 2019 16:17:44 +0000 (19:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:01:08 +0000 (15:01 -0800)
commit330c1ab618fdab46a02a3e4f57ae4e5e92ded34a
treed30727208a8b57b0ff6fe8c4281ebc47bce73647
parent21f5a9c094c41bbd7232042cf08f2432c95cb032
udp: add missing rehash callback to udplite

After commit 10527d6940cc ("net: udp: prefer listeners bound to an
address"), UDP-Lite only works when specifying a local address for
the sockets.

This is related to the problem addressed in the commit 59f137789ff0
("udp: add rehash on connect()"). Moreover, __udp4_lib_lookup() now
looks for a socket immediately in the secondary hash table.

The issue was found with LTP/network tests (UDP-Lite test-cases).

Fixes: 10527d6940cc ("net: udp: prefer listeners bound to an address")
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv4/udp_impl.h
net/ipv4/udplite.c