aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>2016-02-12 18:44:43 +0200
committerIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>2016-02-12 18:50:09 +0200
commita33042c25d4d6f0b300ba1e87095ced2b63654e0 (patch)
tree989b86c7f1dc6c639d32defa0c39ea96614724de
parent05c04c95096494dd42f7ad977d308cb840caf74c (diff)
linux-ks2: pktio: don't create def inp queue if input mode disabled
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
-rw-r--r--platform/linux-keystone2/odp_packet_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/linux-keystone2/odp_packet_io.c b/platform/linux-keystone2/odp_packet_io.c
index a191e069..6078ae10 100644
--- a/platform/linux-keystone2/odp_packet_io.c
+++ b/platform/linux-keystone2/odp_packet_io.c
@@ -329,7 +329,8 @@ int odp_pktio_start(odp_pktio_t id)
* odp_pktio_recv(). If inp_queue or cos_def will be set
* later then simply remove it.
*/
- if (!entry->flags.inp_queue) {
+ if (!entry->flags.inp_queue &&
+ ODP_PKTIN_MODE_DISABLED != entry->param.in_mode) {
snprintf(name, sizeof(name), "%s-pktio_inq", entry->name);
in_queue = odp_queue_create(name, ODP_QUEUE_TYPE_PKTIN, NULL);
ret = odp_pktio_inq_setdef_raw(entry, in_queue);