udp: add a counter into udp_hslot
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 8 Nov 2009 10:17:05 +0000 (10:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Nov 2009 04:53:04 +0000 (20:53 -0800)
commitfdcc8aa953a1123a289791dd192090651036d593
treeb30e27d1ba4d3330e5eb9b7da43d4dfb3a4e42f8
parent415ce61aef5e9b2ed2516a13888c733bea15aedf
udp: add a counter into udp_hslot

Adds a counter in udp_hslot to keep an accurate count
of sockets present in chain.

This will permit to upcoming UDP lookup algo to chose
the shortest chain when secondary hash is added.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
net/ipv4/udp.c