MCPcopy Create free account
hub / github.com/F-Stack/f-stack / flush_all_ports

Function flush_all_ports

dpdk/examples/distributor/main.c:390–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390static inline void
391flush_all_ports(struct output_buffer *tx_buffers)
392{
393 uint16_t outp;
394
395 RTE_ETH_FOREACH_DEV(outp) {
396 /* skip ports that are not enabled */
397 if ((enabled_port_mask & (1 << outp)) == 0)
398 continue;
399
400 if (tx_buffers[outp].count == 0)
401 continue;
402
403 flush_one_port(&tx_buffers[outp], outp);
404 }
405}
406
407
408

Callers 1

lcore_txFunction · 0.85

Calls 1

flush_one_portFunction · 0.85

Tested by

no test coverage detected