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

Function ena_com_get_cap

dpdk/drivers/net/ena/base/ena_com.h:1120–1124  ·  view source on GitHub ↗

ena_com_get_cap - query whether device supports a capability. * @ena_dev: ENA communication layer struct * @cap_id: enum value representing the capability * * @return - true if capability is supported or false otherwise */

Source from the content-addressed store, hash-verified

1118 * @return - true if capability is supported or false otherwise
1119 */
1120static inline bool ena_com_get_cap(struct ena_com_dev *ena_dev,
1121 enum ena_admin_aq_caps_id cap_id)
1122{
1123 return !!(ena_dev->capabilities & BIT(cap_id));
1124}
1125
1126/* ena_com_get_customer_metric_support - query whether device supports a given customer metric.
1127 * @ena_dev: ENA communication layer struct

Callers 8

ena_get_metrics_entriesFunction · 0.85
ena_copy_ena_srd_infoFunction · 0.85
ena_com_dev_resetFunction · 0.85
ena_com_get_eni_statsFunction · 0.85
ena_com_get_ena_srd_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected