diff mbox series

[v1,1/3] linux-generic: pktio: update classifier enable boolean

Message ID 1502730005-8444-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/3] linux-generic: pktio: update classifier enable boolean | expand

Commit Message

Github ODP bot Aug. 14, 2017, 5 p.m. UTC
From: Balasubramanian Manoharan <bala.manoharan@linaro.org>


sets classifer enable based on boolean setting on odp_pktin_queue_param_t
Fixes https://bugs.linaro.org/show_bug.cgi?id=3177

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 126 (muvarov:monarch_lts)
 ** https://github.com/Linaro/odp/pull/126
 ** Patch: https://github.com/Linaro/odp/pull/126.patch
 ** Base sha: 759b6d5da6617af244765983d0b8bfbb26f41890
 ** Merge commit sha: 2c095e7e4fe1c0fc39b552b84d2374988f5920ca
 **/
 platform/linux-generic/odp_packet_io.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c
index 0b9939bd..9f8bade2 100644
--- a/platform/linux-generic/odp_packet_io.c
+++ b/platform/linux-generic/odp_packet_io.c
@@ -1216,6 +1216,8 @@  int odp_pktin_queue_config(odp_pktio_t pktio,
 		return -1;
 	}
 
+	pktio_cls_enabled_set(entry, param->classifier_enable);
+
 	if (num_queues > capa.max_input_queues) {
 		ODP_DBG("pktio %s: too many input queues\n", entry->s.name);
 		return -1;