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:21:06 +0100
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2018-07-12 13:52:37 +0200
commit7709a63bf178f52e0d1c36d8db9b6d91860e0064 (patch)
treea9eb8bf85487d67a24f234040b40e2a3a8edbf91 /drivers/net/softnic/rte_eth_softnic.h
parent31ce8d888625e45019eac7fa9145edc57911e897 (diff)
downloaddpdk-7709a63bf178f52e0d1c36d8db9b6d91860e0064.zip
dpdk-7709a63bf178f52e0d1c36d8db9b6d91860e0064.tar.gz
dpdk-7709a63bf178f52e0d1c36d8db9b6d91860e0064.tar.xz
net/softnic: add connection agent
Add connection agent to enable connectivity with external agent (e.g. telnet, netcat, Python script, etc). 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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/softnic/rte_eth_softnic.h b/drivers/net/softnic/rte_eth_softnic.h
index 98b0828..048dfe6 100644
--- a/drivers/net/softnic/rte_eth_softnic.h
+++ b/drivers/net/softnic/rte_eth_softnic.h
@@ -16,6 +16,11 @@ extern "C" {
#define SOFTNIC_FIRMWARE "firmware.cli"
#endif
+/** TCP connection port (0 = no connectivity). */
+#ifndef SOFTNIC_CONN_PORT
+#define SOFTNIC_CONN_PORT 0
+#endif
+
/** NUMA node ID. */
#ifndef SOFTNIC_CPU_ID
#define SOFTNIC_CPU_ID 0
@@ -42,6 +47,17 @@ extern "C" {
int
rte_pmd_softnic_run(uint16_t port_id);
+/**
+ * Soft NIC manage.
+ *
+ * @param port_id
+ * Port ID of the Soft NIC device.
+ * @return
+ * Zero on success, error code otherwise.
+ */
+int __rte_experimental
+rte_pmd_softnic_manage(uint16_t port_id);
+
#ifdef __cplusplus
}
#endif