Pavel Emelyanov 7eb95156d9 [INET]: Collect frag queues management objects together
There are some objects that are common in all the places
which are used to keep track of frag queues, they are:

 * hash table
 * LRU list
 * rw lock
 * rnd number for hash function
 * the number of queues
 * the amount of memory occupied by queues
 * secret timer

Move all this stuff into one structure (struct inet_frags)
to make it possible use them uniformly in the future. Like
with the previous patch this mostly consists of hunks like

-    write_lock(&ipfrag_lock);
+    write_lock(&ip4_frags.lock);

To address the issue with exporting the number of queues and
the amount of memory occupied by queues outside the .c file
they are declared in, I introduce a couple of helpers.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-15 12:26:39 -07:00
..
2007-10-10 21:19:28 -07:00
2007-07-10 22:16:43 -07:00
2007-10-10 17:30:18 -07:00
2007-10-10 16:53:11 -07:00
2007-07-31 02:28:27 -07:00
2006-12-02 21:22:55 -08:00
2007-10-10 16:53:56 -07:00
2005-08-29 15:32:25 -07:00
2007-07-10 22:15:41 -07:00
2005-04-16 15:20:36 -07:00
2007-10-10 16:51:28 -07:00
2007-10-10 16:54:48 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-22 07:57:21 -03:00
2006-03-20 22:59:36 -08:00
2005-08-29 16:01:32 -07:00
2005-08-29 15:32:25 -07:00
2007-10-07 23:44:17 -07:00
2007-07-10 22:19:04 -07:00
2007-07-17 10:23:03 -07:00
2007-10-10 16:51:28 -07:00
2007-10-10 16:54:48 -07:00
2007-10-10 16:52:13 -07:00
2007-06-07 13:40:50 -07:00
2007-10-10 16:47:46 -07:00