net/softnic: restructure
[dpdk.git] / drivers / net / softnic / rte_eth_softnic.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2017 Intel Corporation
3  */
4
5 #ifndef __INCLUDE_RTE_ETH_SOFTNIC_H__
6 #define __INCLUDE_RTE_ETH_SOFTNIC_H__
7
8 #include <stdint.h>
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /** Firmware. */
15 #ifndef SOFTNIC_FIRMWARE
16 #define SOFTNIC_FIRMWARE                                   "firmware.cli"
17 #endif
18
19 /** NUMA node ID. */
20 #ifndef SOFTNIC_CPU_ID
21 #define SOFTNIC_CPU_ID                                     0
22 #endif
23
24 /**
25  * Soft NIC run.
26  *
27  * @param port_id
28  *    Port ID of the Soft NIC device.
29  * @return
30  *    Zero on success, error code otherwise.
31  */
32
33 int
34 rte_pmd_softnic_run(uint16_t port_id);
35
36 #ifdef __cplusplus
37 }
38 #endif
39
40 #endif /* __INCLUDE_RTE_ETH_SOFTNIC_H__ */