commit | 8728327e7a7a7f21f3a7109e65503f4cc3305e78 | [log] [tgz] |
---|---|---|
author | Anton Vorontsov <avorontsov@ru.mvista.com> | Mon Oct 12 06:00:39 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Oct 12 23:54:05 2009 -0700 |
tree | b06e9fa0da9176043652be8096c6d672b53a971b | |
parent | 8a102fe001cc016dabcc392247a2b008e37ffe6a [diff] |
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 <avorontsov@ru.mvista.com> Signed-off-by: David S. Miller <davem@davemloft.net>