Eric Dumazet e989707135 igmp: hash a hash table to speedup ip_check_mc_rcu()
After IP route cache removal, multicast applications using
a lot of multicast addresses hit a O(N) behavior in ip_check_mc_rcu()

Add a per in_device hash table to get faster lookup.

This hash table is created only if the number of items in mc_list is
above 4.

Reported-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-06-12 00:25:23 -07:00
..
2013-05-14 13:02:30 -07:00
2013-06-11 02:51:03 -07:00
2013-03-17 14:35:13 -04:00
2013-03-28 01:20:42 -04:00
2013-05-27 22:50:59 -07:00
2013-03-08 00:35:44 -05:00
2013-02-21 12:05:51 -08:00
2013-06-10 21:22:35 -07:00
2013-05-27 22:50:59 -07:00
2013-06-10 21:22:35 -07:00