X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fdpaa2%2Frte_pmd_dpaa2.h;h=8ea42ee1301a360cadec91e20ec72016151449f3;hb=40c8fb1fd3b3fc3172429edc5c24b15e9fff9348;hp=84ac9d38d15384761dfa6c99cd01d37c8418f6e8;hpb=a5b375edb79d51295ace62296528e7850415aa67;p=dpdk.git diff --git a/drivers/net/dpaa2/rte_pmd_dpaa2.h b/drivers/net/dpaa2/rte_pmd_dpaa2.h index 84ac9d38d1..8ea42ee130 100644 --- a/drivers/net/dpaa2/rte_pmd_dpaa2.h +++ b/drivers/net/dpaa2/rte_pmd_dpaa2.h @@ -9,18 +9,11 @@ * @file rte_pmd_dpaa2.h * * NXP dpaa2 PMD specific functions. - * - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * */ #include /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Create a flow rule to demultiplex ethernet traffic to separate network * interfaces. * @@ -34,7 +27,6 @@ * @return * A valid handle in case of success, NULL otherwise. */ -__rte_experimental struct rte_flow * rte_pmd_dpaa2_mux_flow_create(uint32_t dpdmux_id, struct rte_flow_item *pattern[], @@ -57,9 +49,6 @@ int rte_pmd_dpaa2_mux_rx_frame_len(uint32_t dpdmux_id, uint16_t max_rx_frame_len); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * 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: @@ -78,7 +67,6 @@ rte_pmd_dpaa2_mux_rx_frame_len(uint32_t dpdmux_id, uint16_t max_rx_frame_len); * - 0 if successful. * - Negative in case of failure. */ -__rte_experimental int rte_pmd_dpaa2_set_custom_hash(uint16_t port_id, uint16_t offset, @@ -94,4 +82,23 @@ __rte_experimental void rte_pmd_dpaa2_thread_init(void); +/** + * @warning + * @b EXPERIMENTAL: this API may change, or be removed, without prior notice + * + * Generate the DPAA2 WRIOP based hash value + * + * @param key + * Array of key data + * @param size + * Size of the hash input key in bytes + * + * @return + * - 0 if successful. + * - Negative in case of failure. + */ + +__rte_experimental +uint32_t +rte_pmd_dpaa2_get_tlu_hash(uint8_t *key, int size); #endif /* _RTE_PMD_DPAA2_H */