]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: maintain available field in bitmap allocator
authorEli Cohen <eli@mellanox.co.il>
Tue, 22 Mar 2011 22:38:45 +0000 (22:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Mar 2011 19:24:24 +0000 (12:24 -0700)
commitcafe7452e2215a536220d8fd8834c09b6bef4b73
tree67adabb8516a4a027377039fdb7ea49b4215a8b3
parentd19be3df1926d315fb39b174aa949d8569389b63
mlx4_core: maintain available field in bitmap allocator

Add mlx4_bitmap_avail() to give the number of available resources. We want to
use this as a hint to whether to allocate a resources or not. This patch is
introduced to be used with allocation blue flame registers.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/alloc.c
drivers/net/mlx4/mlx4.h