From: Anton Vorontsov Date: Mon, 12 Oct 2009 06:00:39 +0000 (+0000) Subject: gianfar: Factor out gfar_init_bds() from gfar_alloc_skb_resources() X-Git-Tag: v2.6.33-rc1~388^2~833 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8728327e7a7a7f21f3a7109e65503f4cc3305e78;p=pandora-kernel.git gianfar: Factor out gfar_init_bds() from gfar_alloc_skb_resources() After hibernation we want to just reinitialize BDs, no need to allocate anything. So, factor out BDs initialization code from gfar_alloc_skb_resourses(). Also, teach gfar_init_bds() to reuse already allocated RX SKBs, i.e. just call gfar_init_rxbdp() if a SKB was already allocated and mapped. Signed-off-by: Anton Vorontsov Signed-off-by: David S. Miller --- Reading git-diff-tree failed