| NVIDIA DOCA SDK | Data Center on a Chip Framework Documentation |

Data Structures | |
| struct | doca_pcc_np_dev_response_packet |
| structure for response packet More... | |
Macros | |
| #define | DOCA_DPA_DEVICE |
| declares that we are compiling for the DPA Device More... | |
Functions | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE 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. The user: More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t * | doca_pcc_np_dev_get_raw_packet (const struct doca_pcc_np_dev_request_packet *input) |
| Return packet from ethernet header. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t | doca_pcc_np_dev_get_raw_packet_size (const struct doca_pcc_np_dev_request_packet *input) |
| Return packet size from ethernet header. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t * | doca_pcc_np_dev_get_l4_header (const struct doca_pcc_np_dev_request_packet *input) |
| Returns a pointer to the L4/udp header of the packet. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t | doca_pcc_np_dev_get_l4_size (const struct doca_pcc_np_dev_request_packet *input) |
| Return packet size from L4/udp header. More... | |
| 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. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t | doca_pcc_np_dev_get_payload_size (const struct doca_pcc_np_dev_request_packet *input) |
| Return packet size from payload after mad header. More... | |
| 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. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t | doca_pcc_np_dev_get_plane_num (const struct doca_pcc_np_dev_request_packet *input) |
| Return plane number of logical port on which input packet arrived. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE void | doca_pcc_np_dev_get_vlan_tci (const struct doca_pcc_np_dev_request_packet *input, uint8_t *vlan_present, uint16_t *vlan_tci) |
| Return the VLAN TCI which was popped from input packet. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t | doca_pcc_np_dev_get_max_response_size (struct doca_pcc_np_dev_response_packet *out) |
| Return data buffer size of out. More... | |
| DOCA_EXPERIMENTAL ALWAYS_INLINE void | doca_pcc_np_dev_set_response_prio (struct doca_pcc_np_dev_response_packet *out, uint32_t prio) |
| Set the priority of a specific packet. More... | |
| uint8_t | doca_pcc_np_dev_get_packet_probe_type_slot (const struct doca_pcc_np_dev_request_packet *input) |
| Get the probe type slot of a given probe request packet. * *. More... | |
DOCA PCC NP Device library. For more details please refer to the user guide on DOCA devzone.
| #define DOCA_DPA_DEVICE |
declares that we are compiling for the DPA Device
Definition at line 31 of file doca_pcc_np_dev.h.
| DOCA_EXPERIMENTAL ALWAYS_INLINE 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. The user:
| [in] | in | - opaque structure that has request packet buffer, size etc. |
| [in] | out | - buffer preallocated for response packet that will be returned |
Definition at line 68 of file np_nic_telemetry_dev_main.c.
| DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t* doca_pcc_np_dev_get_l4_header | ( | const struct doca_pcc_np_dev_request_packet * | input | ) |
Returns a pointer to the L4/udp header of the packet.
The returned buffer starting with the L4/udp header followed by the packet payload.
| [in] | input | - probe packet context |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t doca_pcc_np_dev_get_l4_size | ( | const struct doca_pcc_np_dev_request_packet * | input | ) |
Return packet size from L4/udp header.
| [in] | input | - probe packet context |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t doca_pcc_np_dev_get_max_response_size | ( | struct doca_pcc_np_dev_response_packet * | out | ) |
Return data buffer size of out.
| [in] | out | - a buffer storing the part user filled in response packet |
| uint8_t doca_pcc_np_dev_get_packet_probe_type_slot | ( | const struct doca_pcc_np_dev_request_packet * | input | ) |
Get the probe type slot of a given probe request packet. * *.
*
| [in] | input | Pointer to the request packet structure. * |
| 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.
The returned buffer starting at payload after mad header.
| [in] | input | - probe packet context |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t doca_pcc_np_dev_get_payload_size | ( | const struct doca_pcc_np_dev_request_packet * | input | ) |
Return packet size from payload after mad header.
| [in] | input | - probe packet context |
| DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t doca_pcc_np_dev_get_plane_num | ( | const struct doca_pcc_np_dev_request_packet * | input | ) |
Return plane number of logical port on which input packet arrived.
| [in] | input | - probe packet context |
| 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.
| [in] | input | - probe packet context |
| DOCA_EXPERIMENTAL ALWAYS_INLINE uint8_t* doca_pcc_np_dev_get_raw_packet | ( | const struct doca_pcc_np_dev_request_packet * | input | ) |
Return packet from ethernet header.
This function is to get packet from ethernet header of input
| [in] | input | - a buffer storing the request packet and size of the packet |
| DOCA_EXPERIMENTAL ALWAYS_INLINE size_t doca_pcc_np_dev_get_raw_packet_size | ( | const struct doca_pcc_np_dev_request_packet * | input | ) |
Return packet size from ethernet header.
This function is to get packet size of input
| [in] | input | - a buffer storing the request packet and size of the packet |
| DOCA_EXPERIMENTAL ALWAYS_INLINE void doca_pcc_np_dev_get_vlan_tci | ( | const struct doca_pcc_np_dev_request_packet * | input, |
| uint8_t * | vlan_present, | ||
| uint16_t * | vlan_tci | ||
| ) |
Return the VLAN TCI which was popped from input packet.
| [in] | input | - probe packet context |
| [out] | vlan_present | - indicates a VLAN tag as found and removed |
| [out] | vlan_tci | - the 16-bit VLAN TCI (PCP, DEI, VID) in big-endian format |
| DOCA_EXPERIMENTAL ALWAYS_INLINE void doca_pcc_np_dev_set_response_prio | ( | struct doca_pcc_np_dev_response_packet * | out, |
| uint32_t | prio | ||
| ) |
Set the priority of a specific packet.
| [in] | out | - The response probe packet context |
| [in] | prio | - The DSCP value to set for the out packet |