OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/9] Consolidate IP fragment management
Re: [PATCH 2/9] Collect frag queues management objects together [message #21710 is a reply to message #21635] Mon, 15 October 2007 09:32 Go to previous messageGo to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Fri, 12 Oct 2007 17:06:13 +0400

> 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>

Applied.

'ipfrag_secret_timer' became unused, so I deleted it in this
patch too.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] task containersv11 add tasks file interface fix for cpusets
Next Topic: [patch 0/2][NETNS49][IPV4][IGMP] activate multicast per namespace
Goto Forum:
  


Current Time: Fri Sep 12 23:58:52 GMT 2025

Total time taken to generate the page: 0.10494 seconds