When stopping a port, the data path Tx and Rx burst functions should be stopped firstly conventionally. Then the dummy functions are used to replace the callback functions provided by the PMD.
When the application stops a port without or before stopping the data path handling. The dummy functions may be invoked heavily and a lot of logs in these dummy functions will result in a flood. Debug level log should be enough instead of the error level. Fixes: c87d435a4d79 ("ethdev: copy fast-path API into separate structure") Cc: konstantin.anan...@intel.com Signed-off-by: Bing Zhao <bi...@nvidia.com> --- lib/ethdev/ethdev_private.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ethdev/ethdev_private.c b/lib/ethdev/ethdev_private.c index c905c2df6f..fbc3df91ad 100644 --- a/lib/ethdev/ethdev_private.c +++ b/lib/ethdev/ethdev_private.c @@ -180,7 +180,7 @@ dummy_eth_rx_burst(__rte_unused void *rxq, __rte_unused struct rte_mbuf **rx_pkts, __rte_unused uint16_t nb_pkts) { - RTE_ETHDEV_LOG(ERR, "rx_pkt_burst for not ready port\n"); + RTE_ETHDEV_LOG(DEBUG, "rx_pkt_burst for not ready port\n"); rte_errno = ENOTSUP; return 0; } @@ -190,7 +190,7 @@ dummy_eth_tx_burst(__rte_unused void *txq, __rte_unused struct rte_mbuf **tx_pkts, __rte_unused uint16_t nb_pkts) { - RTE_ETHDEV_LOG(ERR, "tx_pkt_burst for not ready port\n"); + RTE_ETHDEV_LOG(DEBUG, "tx_pkt_burst for not ready port\n"); rte_errno = ENOTSUP; return 0; } -- 2.27.0