1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Intel Corporation
5 #ifndef __INCLUDE_RTE_ETH_SOFTNIC_H__
6 #define __INCLUDE_RTE_ETH_SOFTNIC_H__
15 #ifndef SOFTNIC_FIRMWARE
16 #define SOFTNIC_FIRMWARE "firmware.cli"
19 /** TCP connection port (0 = no connectivity). */
20 #ifndef SOFTNIC_CONN_PORT
21 #define SOFTNIC_CONN_PORT 0
25 #ifndef SOFTNIC_CPU_ID
26 #define SOFTNIC_CPU_ID 0
29 /** Traffic Manager: Number of scheduler queues. */
30 #ifndef SOFTNIC_TM_N_QUEUES
31 #define SOFTNIC_TM_N_QUEUES (64 * 1024)
34 /** Traffic Manager: Scheduler queue size (per traffic class). */
35 #ifndef SOFTNIC_TM_QUEUE_SIZE
36 #define SOFTNIC_TM_QUEUE_SIZE 64
43 * Port ID of the Soft NIC device.
45 * Zero on success, error code otherwise.
48 rte_pmd_softnic_run(uint16_t port_id);
54 * Port ID of the Soft NIC device.
56 * Zero on success, error code otherwise.
58 int __rte_experimental
59 rte_pmd_softnic_manage(uint16_t port_id);
65 #endif /* __INCLUDE_RTE_ETH_SOFTNIC_H__ */