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

Function desc_is_avail

dpdk/lib/vhost/vhost.h:557–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557static inline bool
558desc_is_avail(struct vring_packed_desc *desc, bool wrap_counter)
559{
560 uint16_t flags = rte_atomic_load_explicit((unsigned short __rte_atomic *)&desc->flags,
561 rte_memory_order_acquire);
562
563 return wrap_counter == !!(flags & VRING_DESC_F_AVAIL) &&
564 wrap_counter != !!(flags & VRING_DESC_F_USED);
565}
566
567static inline void
568vq_inc_last_used_packed(struct vhost_virtqueue *vq, uint16_t num)

Callers 3

fill_vec_buf_packedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected