net/mlx5: normalize function prototypes
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
This commit is contained in:
parent
56f08e1671
commit
c9e88d35da
@ -866,7 +866,7 @@ exit_item_not_supported:
|
||||
* @return
|
||||
* A verbs flow attribute on success, NULL otherwise.
|
||||
*/
|
||||
static struct ibv_flow_attr*
|
||||
static struct ibv_flow_attr *
|
||||
priv_flow_convert_allocate(struct priv *priv __rte_unused,
|
||||
unsigned int priority,
|
||||
unsigned int size,
|
||||
|
@ -66,8 +66,9 @@ mlx5_check_mempool_cb(struct rte_mempool *mp __rte_unused,
|
||||
* @return
|
||||
* 0 on success (mempool is virtually contiguous), -1 on error.
|
||||
*/
|
||||
static int mlx5_check_mempool(struct rte_mempool *mp, uintptr_t *start,
|
||||
uintptr_t *end)
|
||||
static int
|
||||
mlx5_check_mempool(struct rte_mempool *mp, uintptr_t *start,
|
||||
uintptr_t *end)
|
||||
{
|
||||
struct mlx5_check_mempool_data data;
|
||||
|
||||
@ -97,7 +98,7 @@ static int mlx5_check_mempool(struct rte_mempool *mp, uintptr_t *start,
|
||||
* @return
|
||||
* mr on success, NULL on failure.
|
||||
*/
|
||||
struct mlx5_mr*
|
||||
struct mlx5_mr *
|
||||
priv_txq_mp2mr_reg(struct priv *priv, struct mlx5_txq_data *txq,
|
||||
struct rte_mempool *mp, unsigned int idx)
|
||||
{
|
||||
@ -244,7 +245,7 @@ mlx5_mp2mr_iter(struct rte_mempool *mp, void *arg)
|
||||
* @return
|
||||
* The memory region on success.
|
||||
*/
|
||||
struct mlx5_mr*
|
||||
struct mlx5_mr *
|
||||
priv_mr_new(struct priv *priv, struct rte_mempool *mp)
|
||||
{
|
||||
const struct rte_memseg *ms = rte_eal_get_physmem_layout();
|
||||
@ -304,7 +305,7 @@ priv_mr_new(struct priv *priv, struct rte_mempool *mp)
|
||||
* @return
|
||||
* The memory region on success.
|
||||
*/
|
||||
struct mlx5_mr*
|
||||
struct mlx5_mr *
|
||||
priv_mr_get(struct priv *priv, struct rte_mempool *mp)
|
||||
{
|
||||
struct mlx5_mr *mr;
|
||||
|
@ -601,7 +601,7 @@ exit:
|
||||
* @return
|
||||
* The Verbs object initialised if it can be created.
|
||||
*/
|
||||
struct mlx5_rxq_ibv*
|
||||
struct mlx5_rxq_ibv *
|
||||
mlx5_priv_rxq_ibv_new(struct priv *priv, uint16_t idx)
|
||||
{
|
||||
struct mlx5_rxq_data *rxq_data = (*priv->rxqs)[idx];
|
||||
@ -819,7 +819,7 @@ error:
|
||||
* @return
|
||||
* The Verbs object if it exists.
|
||||
*/
|
||||
struct mlx5_rxq_ibv*
|
||||
struct mlx5_rxq_ibv *
|
||||
mlx5_priv_rxq_ibv_get(struct priv *priv, uint16_t idx)
|
||||
{
|
||||
struct mlx5_rxq_data *rxq_data = (*priv->rxqs)[idx];
|
||||
@ -932,7 +932,7 @@ mlx5_priv_rxq_ibv_releasable(struct priv *priv __rte_unused,
|
||||
* @return
|
||||
* A DPDK queue object on success.
|
||||
*/
|
||||
struct mlx5_rxq_ctrl*
|
||||
struct mlx5_rxq_ctrl *
|
||||
mlx5_priv_rxq_new(struct priv *priv, uint16_t idx, uint16_t desc,
|
||||
unsigned int socket, const struct rte_eth_rxconf *conf,
|
||||
struct rte_mempool *mp)
|
||||
@ -1057,7 +1057,7 @@ error:
|
||||
* @return
|
||||
* A pointer to the queue if it exists.
|
||||
*/
|
||||
struct mlx5_rxq_ctrl*
|
||||
struct mlx5_rxq_ctrl *
|
||||
mlx5_priv_rxq_get(struct priv *priv, uint16_t idx)
|
||||
{
|
||||
struct mlx5_rxq_ctrl *rxq_ctrl = NULL;
|
||||
@ -1170,7 +1170,7 @@ mlx5_priv_rxq_verify(struct priv *priv)
|
||||
* @return
|
||||
* A new indirection table.
|
||||
*/
|
||||
struct mlx5_ind_table_ibv*
|
||||
struct mlx5_ind_table_ibv *
|
||||
mlx5_priv_ind_table_ibv_new(struct priv *priv, uint16_t queues[],
|
||||
uint16_t queues_n)
|
||||
{
|
||||
@ -1232,7 +1232,7 @@ error:
|
||||
* @return
|
||||
* An indirection table if found.
|
||||
*/
|
||||
struct mlx5_ind_table_ibv*
|
||||
struct mlx5_ind_table_ibv *
|
||||
mlx5_priv_ind_table_ibv_get(struct priv *priv, uint16_t queues[],
|
||||
uint16_t queues_n)
|
||||
{
|
||||
@ -1331,7 +1331,7 @@ mlx5_priv_ind_table_ibv_verify(struct priv *priv)
|
||||
* @return
|
||||
* An hash Rx queue on success.
|
||||
*/
|
||||
struct mlx5_hrxq*
|
||||
struct mlx5_hrxq *
|
||||
mlx5_priv_hrxq_new(struct priv *priv, uint8_t *rss_key, uint8_t rss_key_len,
|
||||
uint64_t hash_fields, uint16_t queues[], uint16_t queues_n)
|
||||
{
|
||||
@ -1400,7 +1400,7 @@ error:
|
||||
* @return
|
||||
* An hash Rx queue on success.
|
||||
*/
|
||||
struct mlx5_hrxq*
|
||||
struct mlx5_hrxq *
|
||||
mlx5_priv_hrxq_get(struct priv *priv, uint8_t *rss_key, uint8_t rss_key_len,
|
||||
uint64_t hash_fields, uint16_t queues[], uint16_t queues_n)
|
||||
{
|
||||
|
@ -369,7 +369,7 @@ is_empw_burst_func(eth_tx_burst_t tx_pkt_burst)
|
||||
* @return
|
||||
* The Verbs object initialised if it can be created.
|
||||
*/
|
||||
struct mlx5_txq_ibv*
|
||||
struct mlx5_txq_ibv *
|
||||
mlx5_priv_txq_ibv_new(struct priv *priv, uint16_t idx)
|
||||
{
|
||||
struct mlx5_txq_data *txq_data = (*priv->txqs)[idx];
|
||||
@ -547,7 +547,7 @@ error:
|
||||
* @return
|
||||
* The Verbs object if it exists.
|
||||
*/
|
||||
struct mlx5_txq_ibv*
|
||||
struct mlx5_txq_ibv *
|
||||
mlx5_priv_txq_ibv_get(struct priv *priv, uint16_t idx)
|
||||
{
|
||||
struct mlx5_txq_ctrl *txq_ctrl;
|
||||
@ -749,7 +749,7 @@ txq_set_params(struct mlx5_txq_ctrl *txq_ctrl)
|
||||
* @return
|
||||
* A DPDK queue object on success.
|
||||
*/
|
||||
struct mlx5_txq_ctrl*
|
||||
struct mlx5_txq_ctrl *
|
||||
mlx5_priv_txq_new(struct priv *priv, uint16_t idx, uint16_t desc,
|
||||
unsigned int socket,
|
||||
const struct rte_eth_txconf *conf)
|
||||
@ -794,7 +794,7 @@ mlx5_priv_txq_new(struct priv *priv, uint16_t idx, uint16_t desc,
|
||||
* @return
|
||||
* A pointer to the queue if it exists.
|
||||
*/
|
||||
struct mlx5_txq_ctrl*
|
||||
struct mlx5_txq_ctrl *
|
||||
mlx5_priv_txq_get(struct priv *priv, uint16_t idx)
|
||||
{
|
||||
struct mlx5_txq_ctrl *ctrl = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user