To fall in line with other drivers using the Rx path selection infrastructure, prevent Rx path selection after the device has started.
Signed-off-by: Ciara Loftus <[email protected]> --- drivers/net/intel/cpfl/cpfl_rxtx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/intel/cpfl/cpfl_rxtx.c b/drivers/net/intel/cpfl/cpfl_rxtx.c index d0438b5da0..1de53f8827 100644 --- a/drivers/net/intel/cpfl/cpfl_rxtx.c +++ b/drivers/net/intel/cpfl/cpfl_rxtx.c @@ -1430,6 +1430,10 @@ cpfl_set_rx_function(struct rte_eth_dev *dev) struct cpfl_rx_queue *cpfl_rxq; int i; + /* If the device has started the function has already been selected. */ + if (dev->data->dev_started) + goto out; + if (cpfl_rx_vec_dev_check_default(dev) == CPFL_VECTOR_PATH && rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_256) req_features.simd_width = cpfl_get_max_simd_bitwidth(); @@ -1462,6 +1466,7 @@ cpfl_set_rx_function(struct rte_eth_dev *dev) } #endif +out: dev->rx_pkt_burst = idpf_rx_path_infos[ad->rx_func_type].pkt_burst; PMD_DRV_LOG(NOTICE, "Using %s Rx (port %d).", idpf_rx_path_infos[ad->rx_func_type].info, dev->data->port_id); -- 2.43.0

