5dd45467b4
Add the previous prototype for the 'profile_hook_rx_burst_cb' function
to fix the compiler warning when the DPDK is built with
'RTE_ETHDEV_PROFILE_WITH_VTUNE' config option enabled:
/home/dpdk/lib/librte_ethdev/ethdev_profile.c:17:1: warning:
no previous prototype for profile_hook_rx_burst_cb [-Wmissing-prototypes]
Fixes: 2c1bbab7f0
("ethdev: change vtune profiling approach")
Cc: stable@dpdk.org
Signed-off-by: Eugeny Parshutin <eugeny.parshutin@linux.intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
37 lines
875 B
C
37 lines
875 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2010-2018 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _RTE_ETHDEV_PROFILE_H_
|
|
#define _RTE_ETHDEV_PROFILE_H_
|
|
|
|
#include "rte_ethdev.h"
|
|
|
|
/**
|
|
* Initialization of the Ethernet device profiling.
|
|
* Implementation of this function depends on chosen profiling method,
|
|
* defined in configs.
|
|
*
|
|
* @param port_id
|
|
* The port identifier of the Ethernet device.
|
|
* @param dev
|
|
* Pointer to struct rte_eth_dev corresponding to given port_id.
|
|
*
|
|
* @return
|
|
* - On success, zero.
|
|
* - On failure, a negative value.
|
|
*/
|
|
int
|
|
__rte_eth_dev_profile_init(uint16_t port_id, struct rte_eth_dev *dev);
|
|
|
|
#ifdef RTE_ETHDEV_PROFILE_WITH_VTUNE
|
|
|
|
uint16_t
|
|
profile_hook_rx_burst_cb(uint16_t port_id, uint16_t queue_id,
|
|
struct rte_mbuf *pkts[], uint16_t nb_pkts,
|
|
uint16_t max_pkts, void *user_param);
|
|
|
|
#endif /* RTE_ETHDEV_PROFILE_WITH_VTUNE */
|
|
|
|
#endif
|