intrte_pmd_dpaa2_mux_flow_create(uint32_tdpdmux_id,structrte_flow_itempattern[],structrte_flow_actionactions[])
Create a flow rule to demultiplex ethernet traffic to separate network interfaces.
Parametersdpdmux_id ID of the DPDMUX MC object.
pattern Pattern specification.
actions Associated actions.
Returns
0 in case of success, otherwise failure.
__rte_experimentalvoidrte_pmd_dpaa2_mux_dump_counter(FILE*f,uint32_tdpdmux_id,intnum_if)WarningEXPERIMENTAL: this API may change, or be removed, without prior notice
Dump demultiplex ethernet traffic counters
Parametersf output stream
dpdmux_id ID of the DPDMUX MC object.
num_if number of interface in dpdmux object
__rte_experimentalintrte_pmd_dpaa2_mux_rx_frame_len(uint32_tdpdmux_id,uint16_tmax_rx_frame_len)WarningEXPERIMENTAL: this API may change, or be removed, without prior notice
demultiplex interface max rx frame length configure
Parametersdpdmux_id ID of the DPDMUX MC object.
max_rx_frame_len maximum receive frame length (will be checked to be minimux of all dpnis)
intrte_pmd_dpaa2_set_custom_hash(uint16_tport_id,uint16_toffset,uint8_tsize)
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.
Parametersport_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
Returns
• 0 if successful.
• Negative in case of failure.
__rte_experimentalvoidrte_pmd_dpaa2_thread_init(void)WarningEXPERIMENTAL: this API may change, or be removed, without prior notice
Do thread specific initialization
__rte_experimentaluint32_trte_pmd_dpaa2_get_tlu_hash(uint8_t*key,intsize)WarningEXPERIMENTAL: this API may change, or be removed, without prior notice
Generate the DPAA2 WRIOP based hash value
Parameterskey Array of key data
size Size of the hash input key in bytes
Returns
• 0 if successful.
• Negative in case of failure.