git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples/l3fwd: add vector stubs for RISC-V
[dpdk.git]
/
examples
/
l3fwd
/
l3fwd_common.h
diff --git
a/examples/l3fwd/l3fwd_common.h
b/examples/l3fwd/l3fwd_common.h
index
cbaab79
..
8e4c272
100644
(file)
--- a/
examples/l3fwd/l3fwd_common.h
+++ b/
examples/l3fwd/l3fwd_common.h
@@
-236,6
+236,9
@@
send_packetsx4(struct lcore_conf *qconf, uint16_t port, struct rte_mbuf *m[],
/* copy rest of the packets into the TX buffer. */
len = num - n;
+ if (len == 0)
+ goto exit;
+
j = 0;
switch (len % FWDSTEP) {
while (j < len) {
@@
-258,6
+261,7
@@
send_packetsx4(struct lcore_conf *qconf, uint16_t port, struct rte_mbuf *m[],
}
}
+exit:
qconf->tx_mbufs[port].len = len;
}