1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2018-2021 NXP
5 #ifndef _RTE_PMD_DPAA2_H
6 #define _RTE_PMD_DPAA2_H
9 * @file rte_pmd_dpaa2.h
11 * NXP dpaa2 PMD specific functions.
14 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
22 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
24 * Create a flow rule to demultiplex ethernet traffic to separate network
28 * ID of the DPDMUX MC object.
30 * Pattern specification.
35 * A valid handle in case of success, NULL otherwise.
39 rte_pmd_dpaa2_mux_flow_create(uint32_t dpdmux_id,
40 struct rte_flow_item *pattern[],
41 struct rte_flow_action *actions[]);
45 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
47 * demultiplex interface max rx frame length configure
50 * ID of the DPDMUX MC object.
51 * @param max_rx_frame_len
52 * maximum receive frame length (will be checked to be minimux of all dpnis)
57 rte_pmd_dpaa2_mux_rx_frame_len(uint32_t dpdmux_id, uint16_t max_rx_frame_len);
61 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
63 * Create a custom hash key on basis of offset of start of packet and size.
64 * for e.g. if we need GRE packets (non-vlan and without any extra headers)
65 * to be hashed on basis of inner IP header, we will provide offset as:
66 * 14 (eth) + 20 (IP) + 4 (GRE) + 12 (Inner Src offset) = 50 and size
70 * The port identifier of the Ethernet device.
72 * Offset from the start of packet which needs to be included to
75 * Size of the hash input key
79 * - Negative in case of failure.
83 rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
89 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
91 * Do thread specific initialization
95 rte_pmd_dpaa2_thread_init(void);
97 #endif /* _RTE_PMD_DPAA2_H */