> -----Original Message-----
> From: Matan Azrad <ma...@mellanox.com>
> Sent: Monday, July 22, 2019 12:13
> To: Shahaf Shuler <shah...@mellanox.com>; Yongseok Koh
> <ys...@mellanox.com>; Slava Ovsiienko <viachesl...@mellanox.com>
> Cc: dev@dpdk.org; Dekel Peled <dek...@mellanox.com>
> Subject: [PATCH 13/28] net/mlx5: allocate door-bells using new API
> 
> From: Dekel Peled <dek...@mellanox.com>
> 
> When using DevX API, memory for door-bell records should be allocated by
> PMD and registered using DevX API.
> 
> This patch implements the utility functions to support it:
> - Add struct mlx5_devx_dbr_page, containing door-bells page data.
> - Add list of struct mlx5_devx_dbr_page door-bell pages to device
>   private data.
> - Implement function mlx5_alloc_dbr_page() to allocate page for
>   door-bell records, and register it using DevX API.
> - Implement function mlx5_get_dbr(). to acquire a door-bell record
>   from the door-bells page, allocating a new page if needed.
> - Implement function mlx5_release_dbr() to release a door-bell
>   record that is no longer needed, freeing the containing page if
>   it becomes empty.
> 
> Signed-off-by: Dekel Peled <dek...@mellanox.com>
> Acked-by: Matan Azrad <ma...@mellanox.com>

Acked-by: Viacheslav Ovsiienko <viachesl...@mellanox.com>

Reply via email to