git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common/mlx5: wrap memory allocation on Linux
[dpdk.git]
/
drivers
/
common
/
mlx5
/
mlx5_common.c
diff --git
a/drivers/common/mlx5/mlx5_common.c
b/drivers/common/mlx5/mlx5_common.c
index
0445132
..
a00ffcb
100644
(file)
--- a/
drivers/common/mlx5/mlx5_common.c
+++ b/
drivers/common/mlx5/mlx5_common.c
@@
-148,7
+148,7
@@
mlx5_alloc_dbr_page(void *ctx)
return NULL;
}
/* Register allocated memory. */
return NULL;
}
/* Register allocated memory. */
- page->umem = mlx5_
glue->devx
_umem_reg(ctx, page->dbrs,
+ page->umem = mlx5_
os
_umem_reg(ctx, page->dbrs,
MLX5_DBR_PAGE_SIZE, 0);
if (!page->umem) {
DRV_LOG(ERR, "cannot umem reg dbr page");
MLX5_DBR_PAGE_SIZE, 0);
if (!page->umem) {
DRV_LOG(ERR, "cannot umem reg dbr page");
@@
-232,7
+232,7
@@
mlx5_release_dbr(struct mlx5_dbr_page_list *head, uint32_t umem_id,
/* Page not used, free it and remove from list. */
LIST_REMOVE(page, next);
if (page->umem)
/* Page not used, free it and remove from list. */
LIST_REMOVE(page, next);
if (page->umem)
- ret = -mlx5_
glue->devx
_umem_dereg(page->umem);
+ ret = -mlx5_
os
_umem_dereg(page->umem);
mlx5_free(page);
} else {
/* Mark in bitmap that this door-bell is not in use. */
mlx5_free(page);
} else {
/* Mark in bitmap that this door-bell is not in use. */