From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 256274CB9 for ; Wed, 28 Feb 2018 16:13:38 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id m12so2775296wrm.13 for ; Wed, 28 Feb 2018 07:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=WVeaC1s9F5vGlvn5NSIWkY6cWlk8JycGiWR+j9eD/ms=; b=crSkW9hwd1ExeKZWmvWgsIz84NlcfZdv19OYJxablKiYMDhCXyZQlzFs9UqByNgeuB PJvDEnNi02N9dhvW4jF8faeoKx50cQjQwOCBYcumrRBqhDYwn/N7LPXKayw/NlJXp6TZ l3rbtt60hzPpM3IBOjvqxCFCBILtNi1zT4794bRTjtRWj0qnb2JzjRvm3LCrIEBrFqNS VefBWmaqF2W4H68BEKW4F8WWnrJ7nSdqIrB/VPu8y1DX1KQZmxhBV6gk9jPKmypPvoCK u7UlOV0J6lYsfvhkuTtE2DiVquP1oFDie1V9H6unhA2lCe2g8q9apnqA8S+RUUpRLjGd yCDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=WVeaC1s9F5vGlvn5NSIWkY6cWlk8JycGiWR+j9eD/ms=; b=cl9Tywz57G6teT6mFDrDkrChl4DfG26coI8TZqTA73FUCICLWDz+ZrGwFl6oqSpqum A8HytnypJeQRkvKODYTvQadbGy7ZDiwBzEZZZjtNptVtL+w4cs8z4P1rGeFAVKLMvIxR peRpmuz3YmYMYC50LSi+wjX+J2Rw/cyIo2uK9CpNAT9wkhk/3H3mpAXQNDI2etKDGaEe QcTRDkQ5b0MxIJYcB7+CoD5e1M4Q7S+wpxnPZuWV2Qmnz3B+/lSpgehC4kMOaXPNeFoN OKUbQR3J4Swx1Y2S3uAfATR8GTHLDUYcmOSKv9CcAowtKclSmuewLuirc6qTsd4yZq81 dj/A== X-Gm-Message-State: APf1xPCm0OnOnkvEuWyC9qOAB1ZfmIhSO+o595/ye1ZYSszZSZqFmxis pCZ0WcXMkwN/iwYONo8u2ScWjGW3aQ== X-Google-Smtp-Source: AG47ELvbGjaNhIbK+itTWcdNAo7YXL45KcrL3HKhjCYSW3EvvoqX7zotlAPABCr+9TVy61/uuWxIRA== X-Received: by 10.223.171.88 with SMTP id r24mr3804415wrc.194.1519830817376; Wed, 28 Feb 2018 07:13:37 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id e18sm4281944wmc.21.2018.02.28.07.13.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 07:13:36 -0800 (PST) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil , Yongseok Koh Date: Wed, 28 Feb 2018 16:12:44 +0100 Message-Id: <544037d525c62cd485c02dab285a1b1ec9cb37a3.1519829860.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 04/10] net/mlx5: normalize function prototypes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 15:13:38 -0000 Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 2 +- drivers/net/mlx5/mlx5_mr.c | 11 ++++++----- drivers/net/mlx5/mlx5_rxq.c | 16 ++++++++-------- drivers/net/mlx5/mlx5_txq.c | 8 ++++---- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index bb98fb4c5..d8d124749 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -866,7 +866,7 @@ priv_flow_convert_items_validate(struct priv *priv __rte_unused, * @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, diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c index 38a8e2f40..4e1495800 100644 --- a/drivers/net/mlx5/mlx5_mr.c +++ b/drivers/net/mlx5/mlx5_mr.c @@ -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; diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 8b9cc1dd0..2fc6e08aa 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -601,7 +601,7 @@ mlx5_rx_intr_disable(struct rte_eth_dev *dev, uint16_t rx_queue_id) * @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 @@ mlx5_priv_rxq_ibv_new(struct priv *priv, uint16_t idx) * @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 @@ mlx5_priv_rxq_new(struct priv *priv, uint16_t idx, uint16_t desc, * @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 @@ mlx5_priv_ind_table_ibv_new(struct priv *priv, uint16_t queues[], * @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 @@ mlx5_priv_hrxq_new(struct priv *priv, uint8_t *rss_key, uint8_t rss_key_len, * @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) { diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 071d88a1f..1a508a488 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -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 @@ mlx5_priv_txq_ibv_new(struct priv *priv, uint16_t idx) * @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; -- 2.11.0