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

Function vf_from_ring

dpdk/drivers/baseband/acc/acc_common.h:813–820  ·  view source on GitHub ↗

Wrapper to provide VF index from ring data. */

Source from the content-addressed store, hash-verified

811
812/* Wrapper to provide VF index from ring data. */
813static inline uint16_t
814vf_from_ring(const union acc_info_ring_data ring_data, uint16_t device_variant)
815{
816 if (device_variant == VRB2_VARIANT)
817 return ring_data.vf_id_vrb2;
818 else
819 return ring_data.vf_id;
820}
821
822/* Wrapper to provide QG index from ring data. */
823static inline uint16_t

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected