[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071119.223843.100278186.davem@davemloft.net>
Date: Mon, 19 Nov 2007 22:38:43 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: xemul@...nvz.org
Cc: netdev@...r.kernel.org, devel@...nvz.org, yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH 6/6 net-2.6.25][RAW] Consolidate proc interface (v2)
From: Pavel Emelyanov <xemul@...nvz.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@...nvz.org>
Also applied, thanks a lot.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists