OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 6/6 net-2.6.25][RAW] Consolidate proc interface (v2)
Re: [PATCH 6/6 net-2.6.25][RAW] Consolidate proc interface (v2) [message #23542 is a reply to message #23428] Tue, 20 November 2007 06:38 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Fri, 16 Nov 2007 18:06:16 +0300

> Both ipv6/raw.c and ipv4/raw.c use the seq files to walk
> through the raw sockets hash and show them.
> 
> The "walking" code is rather huge, but is identical in both
> cases. The difference is the hash table to walk over and
> the protocol family to check (this was not in the first
> virsion of the patch, which was noticed by YOSHIFUJI)
> 
> Make the ->open store the needed hash table and the family
> on the allocated raw_iter_state and make the start/next/stop
> callbacks work with it.
> 
> This removes most of the code.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Also applied, thanks a lot.
 
Read Message
Read Message
Previous Topic: [PATCH 5/6 net-2.6.25][RAW] Consolidate proto->unhash callback
Next Topic: [PATCH][PKTGEN] Fix double unlock of xfrm_state->lock
Goto Forum:
  


Current Time: Thu Aug 21 11:11:33 GMT 2025

Total time taken to generate the page: 0.07320 seconds