Skip to contentSkip to conversation

net/mlx5: fix vectorized Rx burst check

PATCH In review Viacheslav Ovsiienko 3 participants 3 messages Sep 13, 2020 – Sep 23, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix vectorized Rx burst check

The Rx queue start/stop feature is not supported if vectorized rx_burst routine is engaged. There was a routine address typo and rx_burst type check was wrong.

Fixes 161d103b231c ("net/mlx5: add queue start and stop")
---
 drivers/net/mlx5/mlx5_rxq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_rxq.c +1 -1
index 0b3e813..1aee6d1 100644
@@ -562,7 +562,7 @@
 	 * The routine pointer depends on the process
 	 * type, should perform check there.
 	 */
-	if (pkt_burst == mlx5_rx_burst) {
+	if (pkt_burst == mlx5_rx_burst_vec) {
 		DRV_LOG(ERR, "Rx queue stop is not supported "
 			"for vectorized Rx");
 		rte_errno = EINVAL;
Signature · 1 line
1.8.3.1
#2 lore raw
In reply to Viacheslav Ovsiienko

Hi,

Quoted 32 lines

-----Original Message-----
From: Viacheslav Ovsiienko <[email protected]>
Sent: Sunday, September 13, 2020 10:34 PM
To: [email protected]
Cc: Raslan Darawsheh <[email protected]>
Subject: [PATCH] net/mlx5: fix vectorized Rx burst check

The Rx queue start/stop feature is not supported if vectorized rx_burst routine is engaged. There was a routine address typo and rx_burst type check was wrong.

Fixes 161d103b231c ("net/mlx5: add queue start and stop")
---
 drivers/net/mlx5/mlx5_rxq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_rxq.c +1 -2
index 0b3e813..1aee6d1 100644
@@ -562,7 +562,7 @@
 	 * The routine pointer depends on the process
 	 * type, should perform check there.
 	 */
-	if (pkt_burst == mlx5_rx_burst) {
+	if (pkt_burst == mlx5_rx_burst_vec) {
 		DRV_LOG(ERR, "Rx queue stop is not supported "
 			"for vectorized Rx");
 		rte_errno = EINVAL;
--
Quoted 1 line

1.8.3.1

Patch applied to next-net-mxl,

Kindest regards,
Raslan Darawsheh