mirror of https://github.com/F-Stack/f-stack.git
If process_dispatch_ring() has data packet to be processed and it is considered non-idle state.
This commit is contained in:
parent
0508c8b8ec
commit
81dd6c7a24
|
@ -1402,7 +1402,7 @@ process_dispatch_ring(uint16_t port_id, uint16_t queue_id,
|
||||||
process_packets(port_id, queue_id, pkts_burst, nb_rb, ctx, 1);
|
process_packets(port_id, queue_id, pkts_burst, nb_rb, ctx, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return nb_rb;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
@ -1884,7 +1884,7 @@ main_loop(void *arg)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
process_dispatch_ring(port_id, queue_id, pkts_burst, ctx);
|
idle &= !process_dispatch_ring(port_id, queue_id, pkts_burst, ctx);
|
||||||
|
|
||||||
nb_rx = rte_eth_rx_burst(port_id, queue_id, pkts_burst,
|
nb_rx = rte_eth_rx_burst(port_id, queue_id, pkts_burst,
|
||||||
MAX_PKT_BURST);
|
MAX_PKT_BURST);
|
||||||
|
|
Loading…
Reference in New Issue