1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2018-2019 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
27 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
29 * Enable/Disable timestamping update in mbuf for LX2160 kind of devices.
30 * For LS2088/LS1088 devices, timestamping will be updated in mbuf without
34 * Enum to enable/disable timestamp update in mbuf for LX2160 devices.
37 void rte_pmd_dpaa2_set_timestamp(enum pmd_dpaa2_ts);
41 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
43 * Create a flow rule to demultiplex ethernet traffic to separate network
47 * ID of the DPDMUX MC object.
49 * Pattern specification.
54 * A valid handle in case of success, NULL otherwise.
58 rte_pmd_dpaa2_mux_flow_create(uint32_t dpdmux_id,
59 struct rte_flow_item *pattern[],
60 struct rte_flow_action *actions[]);
64 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
66 * Create a custom hash key on basis of offset of start of packet and size.
67 * for e.g. if we need GRE packets (non-vlan and without any extra headers)
68 * to be hashed on basis of inner IP header, we will provide offset as:
69 * 14 (eth) + 20 (IP) + 4 (GRE) + 12 (Inner Src offset) = 50 and size
73 * The port identifier of the Ethernet device.
75 * Offset from the start of packet which needs to be included to
78 * Size of the hash input key
82 * - Negative in case of failure.
86 rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
90 #endif /* _RTE_PMD_DPAA2_H */