summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python/vpp_papi/pneum_wrap.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-01-06 16:33:06 -0500
committerOle Trøan <otroan@employees.org>2017-01-06 22:55:02 +0000
commitf952692c871b78590fcd6f2d1340a77ce59030a6 (patch)
tree7f9871b0dded8c8c8c471d3c16c9f6db21ec73cd /src/vpp-api/python/vpp_papi/pneum_wrap.c
parenta1b99dada3190d793555a075aa4eb3560c68fec7 (diff)
python clients can set the API rx message queue length
Change-Id: I7af1493a823747e0f7389ad6c2093e4cec6c2ce9 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vpp-api/python/vpp_papi/pneum_wrap.c')
-rw-r--r--src/vpp-api/python/vpp_papi/pneum_wrap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vpp-api/python/vpp_papi/pneum_wrap.c b/src/vpp-api/python/vpp_papi/pneum_wrap.c
index 5763707b517..748b96744aa 100644
--- a/src/vpp-api/python/vpp_papi/pneum_wrap.c
+++ b/src/vpp-api/python/vpp_papi/pneum_wrap.c
@@ -45,12 +45,13 @@ static PyObject *
wrap_connect (PyObject *self, PyObject *args)
{
char * name, * chroot_prefix = NULL;
+ int rx_qlen=32; /* default rx queue length */
int rv;
PyObject * temp = NULL;
pneum_callback_t cb = NULL;
- if (!PyArg_ParseTuple(args, "s|Os:wrap_connect",
- &name, &temp, &chroot_prefix))
+ if (!PyArg_ParseTuple(args, "s|Ois:wrap_connect",
+ &name, &temp, &rx_qlen, &chroot_prefix))
return (NULL);
if (temp)
@@ -67,7 +68,7 @@ wrap_connect (PyObject *self, PyObject *args)
cb = wrap_pneum_callback;
}
Py_BEGIN_ALLOW_THREADS
- rv = pneum_connect(name, chroot_prefix, cb);
+ rv = pneum_connect(name, chroot_prefix, cb, rx_qlen);
Py_END_ALLOW_THREADS
return PyLong_FromLong(rv);
}