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

Function bpf_eth_cbi_wait

dpdk/lib/bpf/bpf_pkt.c:101–116  ·  view source on GitHub ↗

* Waits till datapath finished using given callback. */

Source from the content-addressed store, hash-verified

99 * Waits till datapath finished using given callback.
100 */
101static void
102bpf_eth_cbi_wait(const struct bpf_eth_cbi *cbi)
103{
104 uint32_t puse;
105
106 /* make sure all previous loads and stores are completed */
107 rte_smp_mb();
108
109 puse = cbi->use;
110
111 /* in use, busy wait till current RX/TX iteration is finished */
112 if ((puse & BPF_ETH_CBI_INUSE) != 0) {
113 RTE_WAIT_UNTIL_MASKED((__rte_atomic uint32_t *)(uintptr_t)&cbi->use,
114 UINT32_MAX, !=, puse, rte_memory_order_relaxed);
115 }
116}
117
118static void
119bpf_eth_cbi_cleanup(struct bpf_eth_cbi *bc)

Callers 1

bpf_eth_cbi_unloadFunction · 0.85

Calls 1

rte_smp_mbFunction · 0.85

Tested by

no test coverage detected