summaryrefslogtreecommitdiff
path: root/drivers/net/softnic/rte_eth_softnic.h
diff options
context:
space:
mode:
authorJasvinder Singh <jasvinder.singh@intel.com>2018-07-06 18:20:59 +0100
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2018-07-12 13:50:22 +0200
commitea96935de26eb03e7ed19bce1a5f3660cfdc1391 (patch)
tree54bc66da639889a56285712a037b63cb7ad8c7e7 /drivers/net/softnic/rte_eth_softnic.h
parent5d3757484629a8070e8b079513d65a7ac93a0609 (diff)
downloaddpdk-ea96935de26eb03e7ed19bce1a5f3660cfdc1391.zip
dpdk-ea96935de26eb03e7ed19bce1a5f3660cfdc1391.tar.gz
dpdk-ea96935de26eb03e7ed19bce1a5f3660cfdc1391.tar.xz
net/softnic: add traffic manager object
Add traffic manager(tmgr) object to the softnic. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Diffstat (limited to 'drivers/net/softnic/rte_eth_softnic.h')
-rw-r--r--drivers/net/softnic/rte_eth_softnic.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/softnic/rte_eth_softnic.h b/drivers/net/softnic/rte_eth_softnic.h
index fb1d170..98b0828 100644
--- a/drivers/net/softnic/rte_eth_softnic.h
+++ b/drivers/net/softnic/rte_eth_softnic.h
@@ -21,6 +21,16 @@ extern "C" {
#define SOFTNIC_CPU_ID 0
#endif
+/** Traffic Manager: Number of scheduler queues. */
+#ifndef SOFTNIC_TM_N_QUEUES
+#define SOFTNIC_TM_N_QUEUES (64 * 1024)
+#endif
+
+/** Traffic Manager: Scheduler queue size (per traffic class). */
+#ifndef SOFTNIC_TM_QUEUE_SIZE
+#define SOFTNIC_TM_QUEUE_SIZE 64
+#endif
+
/**
* Soft NIC run.
*
@@ -29,7 +39,6 @@ extern "C" {
* @return
* Zero on success, error code otherwise.
*/
-
int
rte_pmd_softnic_run(uint16_t port_id);