Skip to content

Commit

Permalink
net/mlx4: Add mlx4_bitmap zone allocator
Browse files Browse the repository at this point in the history
The zone allocator is a mechanism which manages a few mlx4_bitmaps.

When allocating a resource, the user indicates the desired zone of
which this resource will be allocated from. If possible, the resource
will be allocated from this zone. Otherwise, the resource will be
allocated from a less-than, equal-to, higher-than priority zone,
according to the desired zone's properties with that respective
allocation order.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matan Barak authored and David S. Miller committed Dec 11, 2014
1 parent ab256e5 commit 7a89399
Show file tree
Hide file tree
Showing 2 changed files with 451 additions and 0 deletions.
Loading

0 comments on commit 7a89399

Please sign in to comment.