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:54 +0100
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2018-07-12 13:48:46 +0200
commit7e68bc20f8c8e8cb411a5ae15b5edfb7b6bbb2c6 (patch)
tree3d1baf081c649cf882a2cb59970a574aa0e6a6f1 /drivers/net/softnic/rte_eth_softnic.h
parentecfc2b1c074a937a67fc8bb094e6f2ee6ca86f82 (diff)
downloaddpdk-7e68bc20f8c8e8cb411a5ae15b5edfb7b6bbb2c6.zip
dpdk-7e68bc20f8c8e8cb411a5ae15b5edfb7b6bbb2c6.tar.gz
dpdk-7e68bc20f8c8e8cb411a5ae15b5edfb7b6bbb2c6.tar.xz
net/softnic: restructure
Rework the softnic implementation to have flexiblity in enabling more features to its receive and transmit data path. 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.h34
1 files changed, 10 insertions, 24 deletions
diff --git a/drivers/net/softnic/rte_eth_softnic.h b/drivers/net/softnic/rte_eth_softnic.h
index 9a2c7ba..fb1d170 100644
--- a/drivers/net/softnic/rte_eth_softnic.h
+++ b/drivers/net/softnic/rte_eth_softnic.h
@@ -11,37 +11,23 @@
extern "C" {
#endif
-#ifndef SOFTNIC_SOFT_TM_NB_QUEUES
-#define SOFTNIC_SOFT_TM_NB_QUEUES 65536
+/** Firmware. */
+#ifndef SOFTNIC_FIRMWARE
+#define SOFTNIC_FIRMWARE "firmware.cli"
#endif
-#ifndef SOFTNIC_SOFT_TM_QUEUE_SIZE
-#define SOFTNIC_SOFT_TM_QUEUE_SIZE 64
-#endif
-
-#ifndef SOFTNIC_SOFT_TM_ENQ_BSZ
-#define SOFTNIC_SOFT_TM_ENQ_BSZ 32
-#endif
-
-#ifndef SOFTNIC_SOFT_TM_DEQ_BSZ
-#define SOFTNIC_SOFT_TM_DEQ_BSZ 24
-#endif
-
-#ifndef SOFTNIC_HARD_TX_QUEUE_ID
-#define SOFTNIC_HARD_TX_QUEUE_ID 0
+/** NUMA node ID. */
+#ifndef SOFTNIC_CPU_ID
+#define SOFTNIC_CPU_ID 0
#endif
/**
- * Run the traffic management function on the softnic device
- *
- * This function read the packets from the softnic input queues, insert into
- * QoS scheduler queues based on mbuf sched field value and transmit the
- * scheduled packets out through the hard device interface.
+ * Soft NIC run.
*
- * @param portid
- * port id of the soft device.
+ * @param port_id
+ * Port ID of the Soft NIC device.
* @return
- * zero.
+ * Zero on success, error code otherwise.
*/
int