71 uint32_t *send_ts_p = (uint32_t *)(out->
data);
72 uint32_t *rx_256_bytes_p = (uint32_t *)(out->
data + 4);
73 uint32_t *rx_ts_p = (uint32_t *)(out->
data + 8);
#define __DPA_MEMORY
DPA 'Memory' memory space.
#define __dpa_thread_fence(MEMORY_SPACE, PRED_OP, SUCC_OP)
#define __DPA_W
Write memory operation.
DOCA_EXPERIMENTAL ALWAYS_INLINE void doca_pcc_dev_nic_counters_sample(void)
Sample counters according to the prior configuration call.
DOCA_EXPERIMENTAL void doca_pcc_dev_nic_counters_config(uint32_t *counter_ids, uint32_t num_counters, uint32_t *values)
Prepare a list of counters to read.
#define DOCA_PCC_DEV_GET_PORT_COUNTER_ID(port, type, plane)
Generates a unique ID using the logical port number, counter type, and plane parameters for identifyi...
#define DOCA_PCC_DEV_MAX_NUM_PORTS
Max number of NIC ports supported by the lib.
#define FORCE_INLINE
static inline wrapper
void doca_pcc_dev_user_port_info_changed(uint32_t portid)
User callback triggered on a port state change.
doca_pcc_dev_error_t
API functions return status.
DOCA_EXPERIMENTAL uint32_t doca_pcc_dev_get_logical_ports(void)
Get mask of initiated logical ports.
@ DOCA_PCC_DEV_NIC_COUNTER_TYPE_RX_BYTES
DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t * doca_pcc_np_dev_get_payload(const struct doca_pcc_np_dev_request_packet *input)
Returns a pointer to the payload of the packet.
DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t doca_pcc_np_dev_get_port_num(const struct doca_pcc_np_dev_request_packet *input)
Return logical port number on which input packet arrived.
doca_pcc_dev_error_t doca_pcc_dev_np_user_packet_handler(struct doca_pcc_np_dev_request_packet *in, struct doca_pcc_np_dev_response_packet *out)
Main user function (implemented by the user) Called by the lib upon receiving a packet....
#define doca_pcc_dev_fls(a)
32b find last set
DOCA_STABLE FORCE_INLINE uint32_t doca_pcc_dev_get_timer_lo(void)
Core timer access (elapsed time in uSec) function 32 bits.
uint32_t counter_ids[DOCA_PCC_DEV_MAX_NUM_PORTS]
FORCE_INLINE uint32_t count_ports(uint32_t ports_mask)
Count the number of available logical ports from queried mask.
uint32_t counters_started
uint32_t current_sampled_rx_bytes[DOCA_PCC_DEV_MAX_NUM_PORTS]
structure for response packet