DPDK  24.11.0-rc3
rte_pmd_dpaa2.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2018-2024 NXP
3  */
4 
5 #ifndef _RTE_PMD_DPAA2_H
6 #define _RTE_PMD_DPAA2_H
7 
14 #include <rte_compat.h>
15 #include <rte_flow.h>
16 
31 int
32 rte_pmd_dpaa2_mux_flow_create(uint32_t dpdmux_id,
33  struct rte_flow_item pattern[],
34  struct rte_flow_action actions[]);
35 int
36 rte_pmd_dpaa2_mux_flow_destroy(uint32_t dpdmux_id,
37  uint16_t entry_index);
38 int
39 rte_pmd_dpaa2_mux_flow_l2(uint32_t dpdmux_id,
40  uint8_t mac_addr[6], uint16_t vlan_id, int dest_if);
41 
56 __rte_experimental
57 void
58 rte_pmd_dpaa2_mux_dump_counter(FILE *f, uint32_t dpdmux_id, int num_if);
59 
72 __rte_experimental
73 int
74 rte_pmd_dpaa2_mux_rx_frame_len(uint32_t dpdmux_id, uint16_t max_rx_frame_len);
75 
95 int
96 rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
97  uint16_t offset,
98  uint8_t size);
99 
106 __rte_experimental
107 void
109 
126 __rte_experimental
127 uint32_t
128 rte_pmd_dpaa2_get_tlu_hash(uint8_t *key, int size);
129 
130 __rte_experimental
131 int
132 rte_pmd_dpaa2_dev_is_dpaa2(uint32_t eth_id);
133 __rte_experimental
134 const char *
135 rte_pmd_dpaa2_ep_name(uint32_t eth_id);
136 
137 #if defined(RTE_LIBRTE_IEEE1588)
138 __rte_experimental
139 int
140 rte_pmd_dpaa2_set_one_step_ts(uint16_t port_id, uint16_t offset, uint8_t ch_update);
141 
142 __rte_experimental
143 int
144 rte_pmd_dpaa2_get_one_step_ts(uint16_t port_id, bool mc_query);
145 #endif
146 #endif /* _RTE_PMD_DPAA2_H */
__rte_experimental uint32_t rte_pmd_dpaa2_get_tlu_hash(uint8_t *key, int size)
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 void rte_pmd_dpaa2_thread_init(void)
int rte_pmd_dpaa2_set_custom_hash(uint16_t port_id, uint16_t offset, uint8_t size)
__rte_experimental int rte_pmd_dpaa2_mux_rx_frame_len(uint32_t dpdmux_id, uint16_t max_rx_frame_len)