|
DPDK 25.11.0
|
Go to the source code of this file.
Functions | |
| int | rte_pmd_dpaa2_mux_flow_create (uint32_t dpdmux_id, struct rte_flow_item pattern[], struct rte_flow_action actions[]) |
| __rte_experimental void | rte_pmd_dpaa2_mux_dump_counter (FILE *f, uint32_t dpdmux_id, int num_if) |
| __rte_experimental int | rte_pmd_dpaa2_mux_rx_frame_len (uint32_t dpdmux_id, uint16_t max_rx_frame_len) |
| int | rte_pmd_dpaa2_set_custom_hash (uint16_t port_id, uint16_t offset, uint8_t size) |
| __rte_experimental void | rte_pmd_dpaa2_thread_init (void) |
| __rte_experimental uint32_t | rte_pmd_dpaa2_get_tlu_hash (uint8_t *key, int size) |
NXP dpaa2 PMD specific functions.
Definition in file rte_pmd_dpaa2.h.
| int rte_pmd_dpaa2_mux_flow_create | ( | uint32_t | dpdmux_id, |
| struct rte_flow_item | pattern[], | ||
| struct rte_flow_action | actions[] ) |
Create a flow rule to demultiplex ethernet traffic to separate network interfaces.
| dpdmux_id | ID of the DPDMUX MC object. | |
| [in] | pattern | Pattern specification. |
| [in] | actions | Associated actions. |
| __rte_experimental void rte_pmd_dpaa2_mux_dump_counter | ( | FILE * | f, |
| uint32_t | dpdmux_id, | ||
| int | num_if ) |
Dump demultiplex ethernet traffic counters
| f | output stream |
| dpdmux_id | ID of the DPDMUX MC object. |
| num_if | number of interface in dpdmux object |
| __rte_experimental int rte_pmd_dpaa2_mux_rx_frame_len | ( | uint32_t | dpdmux_id, |
| uint16_t | max_rx_frame_len ) |
demultiplex interface max rx frame length configure
| dpdmux_id | ID of the DPDMUX MC object. |
| max_rx_frame_len | maximum receive frame length (will be checked to be minimux of all dpnis) |
| int rte_pmd_dpaa2_set_custom_hash | ( | uint16_t | port_id, |
| uint16_t | offset, | ||
| uint8_t | size ) |
Create a custom hash key on basis of offset of start of packet and size. for e.g. if we need GRE packets (non-vlan and without any extra headers) to be hashed on basis of inner IP header, we will provide offset as: 14 (eth) + 20 (IP) + 4 (GRE) + 12 (Inner Src offset) = 50 and size as 8 bytes.
| port_id | The port identifier of the Ethernet device. |
| offset | Offset from the start of packet which needs to be included to calculate hash |
| size | Size of the hash input key |
| __rte_experimental void rte_pmd_dpaa2_thread_init | ( | void | ) |
Do thread specific initialization
| __rte_experimental uint32_t rte_pmd_dpaa2_get_tlu_hash | ( | uint8_t * | key, |
| int | size ) |
Generate the DPAA2 WRIOP based hash value
| key | Array of key data |
| size | Size of the hash input key in bytes |