net/nfb: skip log for zero-sized Tx burst

Zero-sized TX burst floods the log no more.

Signed-off-by: Martin Spinler <spinler@cesnet.cz>
This commit is contained in:
Martin Spinler 2022-02-15 13:55:40 +01:00 committed by Ferruh Yigit
parent 8a4c8edb11
commit f95a6c34bb

View File

@ -136,7 +136,10 @@ nfb_eth_ndp_tx(void *queue,
struct ndp_packet packets[nb_pkts]; struct ndp_packet packets[nb_pkts];
if (unlikely(ndp->queue == NULL || nb_pkts == 0)) { if (unlikely(nb_pkts == 0))
return 0;
if (unlikely(ndp->queue == NULL)) {
RTE_LOG(ERR, PMD, "TX invalid arguments!\n"); RTE_LOG(ERR, PMD, "TX invalid arguments!\n");
return 0; return 0;
} }