| NVIDIA DOCA SDK | Data Center on a Chip Framework Documentation |
Functions | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_cap_is_supported (const struct doca_devinfo *devinfo) |
| Check if given device is capable of executing telemetry PCC operations. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_create (struct doca_dev *dev, struct doca_telemetry_pcc **pcc) |
| Create a DOCA Telemetry PCC instance. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_destroy (struct doca_telemetry_pcc *pcc) |
| Destroy doca_telemetry_pcc previously created by doca_telemetry_pcc_create(). More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_start (struct doca_telemetry_pcc *pcc) |
| Start context for pcc counter extraction. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_stop (struct doca_telemetry_pcc *pcc) |
| Stop pcc counter extraction context. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_cap_get_max_algo_slots (const struct doca_devinfo *devinfo, uint32_t *max_algo_slots) |
| Get the maximum number of algo slots that may be populated. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_algo_id (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *algo_id) |
| Get the id of algo on a specific slot. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_algo_major_version (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *major_ver) |
| Get the major version number of algo on a specific slot. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_algo_minor_version (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *minor_ver) |
| Get the minor version number of algo on a specific slot. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_algo_enable_status (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint8_t *algo_enabled, uint8_t *counters_enabled) |
| Get the enable status for a given algo slot. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_cap_get_max_algo_info_len (const struct doca_devinfo *devinfo, uint32_t *max_algo_info_len) |
| Get the maximum number of characters that be returned by an algo_info request. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_algo_info (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, char *algo_info) |
| Get information on a given algorithm. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_num_counters (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *num_counters) |
| Get the number of counters available in a given algo slot. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_cap_get_max_counter_info_len (const struct doca_devinfo *devinfo, uint32_t *max_counter_info_len) |
| Get the maximum number of characters that be returned by a counter_info request. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_counter_info (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint8_t counter_id, char *counter_info) |
| Get information on a given counter. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_cap_get_max_num_counters (const struct doca_devinfo *devinfo, uint32_t *max_num_counters) |
| Get the maximum number of counters that may be returned. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_counters (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *counters_populated, uint32_t *counters) |
| Get counters for PCC algo slot. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_telemetry_pcc_get_and_clear_counters (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *counters_populated, uint32_t *counters) |
| Get and clear (reset to 0) counters for PCC algo slot. More... | |
DOCA Telemetry Programmable Congestion Control library. For more details please refer to the user guide on DOCA devzone.
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_algo_info_len | ( | const struct doca_devinfo * | devinfo, |
| uint32_t * | max_algo_info_len | ||
| ) |
Get the maximum number of characters that be returned by an algo_info request.
| [in] | devinfo | The DOCA device information. |
| [out] | max_algo_info_len | Maximum length of a algo info string. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_algo_slots | ( | const struct doca_devinfo * | devinfo, |
| uint32_t * | max_algo_slots | ||
| ) |
Get the maximum number of algo slots that may be populated.
| [in] | devinfo | The DOCA device information. |
| [out] | max_algo_slots | Maximum number of algo slots on device. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_counter_info_len | ( | const struct doca_devinfo * | devinfo, |
| uint32_t * | max_counter_info_len | ||
| ) |
Get the maximum number of characters that be returned by a counter_info request.
| [in] | devinfo | The DOCA device information. |
| [out] | max_counter_info_len | Maximum length of a counter info string. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_num_counters | ( | const struct doca_devinfo * | devinfo, |
| uint32_t * | max_num_counters | ||
| ) |
Get the maximum number of counters that may be returned.
| [in] | devinfo | The DOCA device information. |
| [out] | max_num_counters | Maximum number of 32-bit counters device can return. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_is_supported | ( | const struct doca_devinfo * | devinfo | ) |
Check if given device is capable of executing telemetry PCC operations.
| [in] | devinfo | The DOCA device information. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_create | ( | struct doca_dev * | dev, |
| struct doca_telemetry_pcc ** | pcc | ||
| ) |
Create a DOCA Telemetry PCC instance.
| [in] | dev | The device to attach to the telemetry PCC instance. |
| [out] | pcc | Pointer to pointer to be set to point to the created doca_telemetry_pcc instance. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_destroy | ( | struct doca_telemetry_pcc * | pcc | ) |
Destroy doca_telemetry_pcc previously created by doca_telemetry_pcc_create().
| [in] | pcc | Pointer to instance to be destroyed. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_enable_status | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint8_t * | algo_enabled, | ||
| uint8_t * | counters_enabled | ||
| ) |
Get the enable status for a given algo slot.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Algo slot on device to act on. |
| [out] | algo_enabled | Status of the algorithm (1 is enabled, 0 is disabled). |
| [out] | counters_enabled | Status of counters for the algorithm (1 is enabled, 0 is disabled). |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_id | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint32_t * | algo_id | ||
| ) |
Get the id of algo on a specific slot.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Slot index of the algo. |
| [out] | algo_id | ID of given algo. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_info | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| char * | algo_info | ||
| ) |
Get information on a given algorithm.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Algo slot on device to act on. |
| [out] | algo_info | Algo information - must be allocated up to a length of doca_telemetry_pcc_cap_get_max_algo_info_len(). |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_major_version | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint32_t * | major_ver | ||
| ) |
Get the major version number of algo on a specific slot.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Slot index of the algo. |
| [out] | major_ver | Major version number. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_minor_version | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint32_t * | minor_ver | ||
| ) |
Get the minor version number of algo on a specific slot.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Slot index of the algo. |
| [out] | minor_ver | Minor version number. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_and_clear_counters | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint32_t * | counters_populated, | ||
| uint32_t * | counters | ||
| ) |
Get and clear (reset to 0) counters for PCC algo slot.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Algo slot on device to act on. |
| [out] | counters_populated | Number of 'counters' array entries that have been populated (0 if counters array is NULL). |
| [out] | counters | Array of 32-bit counters - must be allocated with at least doca_telemetry_pcc_cap_get_max_num_counters() entries. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_counter_info | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint8_t | counter_id, | ||
| char * | counter_info | ||
| ) |
Get information on a given counter.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Algo slot on device to act on. |
| [in] | counter_id | ID of the counter to check - ranging from 0 to num_counters-1. |
| [out] | counter_info | Counter information - must be allocated up to a length of doca_telemetry_pcc_cap_get_max_counter_info_len(). |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_counters | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint32_t * | counters_populated, | ||
| uint32_t * | counters | ||
| ) |
Get counters for PCC algo slot.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Algo slot on device to act on. |
| [out] | counters_populated | Number of 'counters' array entries that have been populated - indexes 0 to counters_populated-1. |
| [out] | counters | Array of 32-bit counters - must be allocated with at least doca_telemetry_pcc_cap_get_max_num_counters() entries. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_num_counters | ( | struct doca_telemetry_pcc * | pcc, |
| uint8_t | algo_slot, | ||
| uint32_t * | num_counters | ||
| ) |
Get the number of counters available in a given algo slot.
| [in] | pcc | Pointer to pcc instance. |
| [in] | algo_slot | Algo slot on device to act on. |
| [out] | num_counters | Number of counters enabled on the algo slot. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_start | ( | struct doca_telemetry_pcc * | pcc | ) |
Start context for pcc counter extraction.
| [in] | pcc | Pointer to pcc instance. |
| DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_stop | ( | struct doca_telemetry_pcc * | pcc | ) |
Stop pcc counter extraction context.
| [in] | pcc | Pointer to pcc instance. |