[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130927.173302.304054571363734165.davem@davemloft.net>
Date: Fri, 27 Sep 2013 17:33:02 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: hannes@...essinduktion.org
Cc: netdev@...r.kernel.org, greearb@...delatech.com, kaber@...sh.net,
yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH net-next 1/2] ipv6: avoid high order memory allocations
for /proc/net/ipv6_route
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
Date: Sat, 21 Sep 2013 16:55:59 +0200
> Dumping routes on a system with lots rt6_infos in the fibs causes up to
> 11-order allocations in seq_file (which fail). While we could switch
> there to vmalloc we could just implement the streaming interface for
> /proc/net/ipv6_route. This patch switches /proc/net/ipv6_route from
> single_open_net to seq_open_net.
>
> loff_t *pos tracks dst entries.
>
> Also kill never used struct rt6_proc_arg and now unused function
> fib6_clean_all_ro.
>
> Cc: Ben Greear <greearb@...delatech.com>
> Cc: Patrick McHardy <kaber@...sh.net>
> Cc: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
Applied, nice work.
--
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