Skip to content

Commit 615b66a

Browse files
committed
Modif some format.
1 parent f069dcd commit 615b66a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ff_dpdk_kni.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ kni_process_tx(uint16_t port_id, uint16_t queue_id,
225225
struct rte_mbuf **pkts_burst, unsigned count)
226226
{
227227
/* read packet from kni ring(phy port) and transmit to kni */
228-
uint16_t nb_tx, nb_to_tx, nb_kni_tx;
228+
uint16_t nb_tx, nb_to_tx, nb_kni_tx = 0;
229229
nb_tx = rte_ring_dequeue_burst(kni_rp[port_id], (void **)pkts_burst, count, NULL);
230230

231231
/*
@@ -257,6 +257,7 @@ kni_process_tx(uint16_t port_id, uint16_t queue_id,
257257
{
258258
nb_kni_tx = rte_eth_tx_burst(kni_stat[port_id]->port_id, 0, pkts_burst, nb_to_tx);
259259
}
260+
260261
if(nb_kni_tx < nb_tx) {
261262
uint16_t i;
262263
for(i = nb_kni_tx; i < nb_tx; ++i)

0 commit comments

Comments
 (0)