2017-12-19 15:49:03 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2018-07-19 12:21:42 +00:00
|
|
|
* Copyright(c) 2010-2018 Intel Corporation
|
2017-09-22 14:52:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _RTE_ETHDEV_PROFILE_H_
|
|
|
|
#define _RTE_ETHDEV_PROFILE_H_
|
|
|
|
|
|
|
|
#include "rte_ethdev.h"
|
|
|
|
|
|
|
|
/**
|
2018-07-19 12:21:42 +00:00
|
|
|
* Initialization of the Ethernet device profiling.
|
2017-09-22 14:52:29 +00:00
|
|
|
* 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
|
2018-07-19 12:21:42 +00:00
|
|
|
__rte_eth_dev_profile_init(uint16_t port_id, struct rte_eth_dev *dev);
|
2017-09-22 14:52:29 +00:00
|
|
|
|
|
|
|
#endif
|