mirror of https://github.com/F-Stack/f-stack.git
recommit
This commit is contained in:
parent
268488030d
commit
49d7ad40cc
|
@ -1279,18 +1279,16 @@ send_burst(struct lcore_conf *qconf, uint16_t n, uint8_t port)
|
|||
}
|
||||
|
||||
ret = rte_eth_tx_burst(port, queueid, m_table, n);
|
||||
ff_traffic.tx_packets += ret;
|
||||
uint16_t i;
|
||||
for (i = 0; i < ret; i++) {
|
||||
ff_traffic.tx_bytes += rte_pktmbuf_pkt_len(m_table[i]);
|
||||
}
|
||||
if (unlikely(ret < n)) {
|
||||
do {
|
||||
rte_pktmbuf_free(m_table[ret]);
|
||||
} while (++ret < n);
|
||||
}
|
||||
|
||||
ff_traffic.tx_packets += ret;
|
||||
uint16_t i;
|
||||
for (i = 0; i < ret; i++) {
|
||||
ff_traffic.tx_bytes += rte_pktmbuf_pkt_len(m_table[i]);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue