git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a4c8ed
)
net/nfb: skip log for zero-sized Tx burst
author
Martin Spinler
<spinler@cesnet.cz>
Tue, 15 Feb 2022 12:55:40 +0000
(13:55 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 15 Feb 2022 13:53:41 +0000
(14:53 +0100)
Zero-sized TX burst floods the log no more.
Signed-off-by: Martin Spinler <spinler@cesnet.cz>
drivers/net/nfb/nfb_tx.h
patch
|
blob
|
history
diff --git
a/drivers/net/nfb/nfb_tx.h
b/drivers/net/nfb/nfb_tx.h
index
d3cbe3e
..
910020e
100644
(file)
--- a/
drivers/net/nfb/nfb_tx.h
+++ b/
drivers/net/nfb/nfb_tx.h
@@
-136,7
+136,10
@@
nfb_eth_ndp_tx(void *queue,
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");
return 0;
}