[dpdk-dev] [PATCH 1/5] net/mlx5: warn which Tx/Rx burst function is selected

Nelio Laranjeiro nelio.laranjeiro at 6wind.com
Tue Aug 1 10:05:31 CEST 2017


Warning the user helps to understand way the performances does not match
the expected values.

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
Acked-by: Yongseok Koh <yskoh at mellanox.com>
---
 drivers/net/mlx5/mlx5_ethdev.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index b0eb3cd..a233a73 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -1516,17 +1516,17 @@ priv_select_tx_function(struct priv *priv)
 				priv->dev->tx_pkt_burst = mlx5_tx_burst_raw_vec;
 			else
 				priv->dev->tx_pkt_burst = mlx5_tx_burst_vec;
-			DEBUG("selected Enhanced MPW TX vectorized function");
+			INFO("selected Enhanced MPW TX vectorized function");
 		} else {
 			priv->dev->tx_pkt_burst = mlx5_tx_burst_empw;
-			DEBUG("selected Enhanced MPW TX function");
+			INFO("selected Enhanced MPW TX function");
 		}
 	} else if (priv->mps && priv->txq_inline) {
 		priv->dev->tx_pkt_burst = mlx5_tx_burst_mpw_inline;
-		DEBUG("selected MPW inline TX function");
+		INFO("selected MPW inline TX function");
 	} else if (priv->mps) {
 		priv->dev->tx_pkt_burst = mlx5_tx_burst_mpw;
-		DEBUG("selected MPW TX function");
+		INFO("selected MPW TX function");
 	}
 }
 
@@ -1542,7 +1542,7 @@ priv_select_rx_function(struct priv *priv)
 	if (priv_check_vec_rx_support(priv) > 0) {
 		priv_prep_vec_rx_function(priv);
 		priv->dev->rx_pkt_burst = mlx5_rx_burst_vec;
-		DEBUG("selected RX vectorized function");
+		INFO("selected RX vectorized function");
 	} else {
 		priv->dev->rx_pkt_burst = mlx5_rx_burst;
 	}
-- 
2.1.4



More information about the dev mailing list