From: NĂ©lio Laranjeiro Date: Tue, 11 Oct 2016 14:44:50 +0000 (+0200) Subject: net/mlx5: fix Rx function selection X-Git-Tag: spdx-start~5546 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cf0564e3cdbfc66417a8e2b1f9db66e129415c53;p=dpdk.git net/mlx5: fix Rx function selection mlx5_rx_queue_setup() was setting the Rx function by itself instead of using priv_select_rx_function() written for that purpose. Fixes: cdab90cb5c8d ("net/mlx5: add Tx/Rx burst function selection wrapper") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index d15b488843..4dc5cc3916 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -1262,7 +1262,7 @@ mlx5_rx_queue_setup(struct rte_eth_dev *dev, uint16_t idx, uint16_t desc, (void *)dev, (void *)rxq_ctrl); (*priv->rxqs)[idx] = &rxq_ctrl->rxq; /* Update receive callback. */ - dev->rx_pkt_burst = mlx5_rx_burst; + priv_select_rx_function(priv); } priv_unlock(priv); return -ret;