summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5.c
diff options
context:
space:
mode:
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>2018-07-12 11:30:49 +0200
committerShahaf Shuler <shahafs@mellanox.com>2018-07-12 12:10:01 +0200
commit2815702baea7cb613d024d548e2db7b7fa1d8ded (patch)
treea1bc20759a2f2fb0d86c2bfb5847bd496081c94f /drivers/net/mlx5/mlx5.c
parent78be885295b86da2c208324f1e276e802812b60d (diff)
downloaddpdk-next-eventdev-2815702baea7cb613d024d548e2db7b7fa1d8ded.zip
dpdk-next-eventdev-2815702baea7cb613d024d548e2db7b7fa1d8ded.tar.gz
dpdk-next-eventdev-2815702baea7cb613d024d548e2db7b7fa1d8ded.tar.xz
net/mlx5: replace verbs priorities by flow
Previous work introduce verbs priorities, whereas the PMD is making translation between Flow priority into Verbs. Rename this to make more sense on what the PMD has to translate. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5.c')
-rw-r--r--drivers/net/mlx5/mlx5.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 60305b1..997eb77 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -717,7 +717,6 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
unsigned int tunnel_en = 0;
unsigned int mpls_en = 0;
unsigned int swp = 0;
- unsigned int verb_priorities = 0;
unsigned int mprq = 0;
unsigned int mprq_min_stride_size_n = 0;
unsigned int mprq_max_stride_size_n = 0;
@@ -1139,16 +1138,10 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
/* Store device configuration on private structure. */
priv->config = config;
/* Supported Verbs flow priority number detection. */
- if (verb_priorities == 0) {
- err = mlx5_verbs_max_prio(eth_dev);
- if (err < 0) {
- DRV_LOG(ERR, "port %u wrong Verbs flow priorities",
- eth_dev->data->port_id);
- goto error;
- }
- verb_priorities = err;
- }
- priv->config.max_verbs_prio = verb_priorities;
+ err = mlx5_flow_discover_priorities(eth_dev);
+ if (err < 0)
+ goto error;
+ priv->config.flow_prio = err;
/*
* Once the device is added to the list of memory event
* callback, its global MR cache table cannot be expanded