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__
14 #ifndef SOFTNIC_SOFT_TM_NB_QUEUES
15 #define SOFTNIC_SOFT_TM_NB_QUEUES 65536
18 #ifndef SOFTNIC_SOFT_TM_QUEUE_SIZE
19 #define SOFTNIC_SOFT_TM_QUEUE_SIZE 64
22 #ifndef SOFTNIC_SOFT_TM_ENQ_BSZ
23 #define SOFTNIC_SOFT_TM_ENQ_BSZ 32
26 #ifndef SOFTNIC_SOFT_TM_DEQ_BSZ
27 #define SOFTNIC_SOFT_TM_DEQ_BSZ 24
30 #ifndef SOFTNIC_HARD_TX_QUEUE_ID
31 #define SOFTNIC_HARD_TX_QUEUE_ID 0
35 * Run the traffic management function on the softnic device
37 * This function read the packets from the softnic input queues, insert into
38 * QoS scheduler queues based on mbuf sched field value and transmit the
39 * scheduled packets out through the hard device interface.
42 * port id of the soft device.
48 rte_pmd_softnic_run(uint16_t port_id);
54 #endif /* __INCLUDE_RTE_ETH_SOFTNIC_H__ */