#ifndef _HWBM_H
#define _HWBM_H

struct hwbm_pool {
	/* Capacity of the pool */
	int size;
	/* Size of the buffers managed */
	int frag_size;
	/* Number of buffers currently used by this pool */
	int buf_num;
	/* constructor called during alocation */
	int (*construct)(struct hwbm_pool *bm_pool, void *buf);
	/* protect acces to the buffer counter*/
	spinlock_t lock;
	/* private data */
	void *priv;
};
#ifdef CONFIG_HWBM
void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf);
int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp);
int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp);
#else
void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) {}
int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) { return 0; }
int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp)
{ return 0; }
#endif /* CONFIG_HWBM */
#endif /* _HWBM_H */
t'>
<input type='hidden' name='id' value='f515f192ab4f45bb695146b82432d63d98775787'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/xfrm/xfrm_input.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/xfrm/xfrm_input.c?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/xfrm/xfrm_input.c?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/xfrm/xfrm_input.c?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/xfrm/xfrm_input.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='f515f192ab4f45bb695146b82432d63d98775787'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/xfrm?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>xfrm</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/xfrm/xfrm_input.c?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787'>xfrm_input.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/xfrm/xfrm_input.c?h=nds-private-remove&amp;id=f515f192ab4f45bb695146b82432d63d98775787&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>