From: Viacheslav Ovsiienko Date: Sun, 13 Sep 2020 19:33:39 +0000 (+0000) Subject: net/mlx5: fix vectorized Rx burst check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=35e75f78162f38e118b288b76c415df988f537f3;p=dpdk.git 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") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 9f68a5cb98..a9ccc2be8c 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -562,7 +562,7 @@ mlx5_rx_queue_stop(struct rte_eth_dev *dev, uint16_t idx) * 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;