efa79e68c8
The inline feature is designed to save PCI bandwidth by copying some of the data to the wqe. This feature if enabled works for all packets. In some cases when using external memory, the PCI bandwidth is not relevant since the memory can be accessed by other means. This commit introduce the ability to control the inline with mbuf granularity. In order to use this feature the application should register the field name, and restart the port. Signed-off-by: Ori Kam <orika@mellanox.com> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Acked-by: Matan Azrad <matan@mellanox.com>
36 lines
853 B
C
36 lines
853 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2020 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#ifndef RTE_PMD_PRIVATE_MLX5_H_
|
|
#define RTE_PMD_PRIVATE_MLX5_H_
|
|
|
|
/**
|
|
* @file
|
|
* MLX5 public header.
|
|
*
|
|
* This interface provides the ability to support private PMD
|
|
* dynamic flags.
|
|
*/
|
|
|
|
#define RTE_PMD_MLX5_FINE_GRANULARITY_INLINE "mlx5_fine_granularity_inline"
|
|
|
|
/**
|
|
* Returns the dynamic flags name, that are supported.
|
|
*
|
|
* @param[out] names
|
|
* Array that is used to return the supported dynamic flags names.
|
|
* @param[in] n
|
|
* The number of elements in the names array.
|
|
*
|
|
* @return
|
|
* The number of dynamic flags that were copied if not negative.
|
|
* Otherwise:
|
|
* - ENOMEM - not enough entries in the array
|
|
* - EINVAL - invalid array entry
|
|
*/
|
|
__rte_experimental
|
|
int rte_pmd_mlx5_get_dyn_flag_names(char *names[], unsigned int n);
|
|
|
|
#endif
|