From: Balasubramanian Manoharan <[email protected]>

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 <[email protected]>
---
/** Email created from pull request 103 (bala-manoharan:BUG3177)
 ** https://github.com/Linaro/odp/pull/103
 ** Patch: https://github.com/Linaro/odp/pull/103.patch
 ** Base sha: bb0ca193f8c28036fdf8b3d6c8aa5d4f11980e6c
 ** Merge commit sha: d81d807fdb8eb7120a78ae604ca204800c405431
 **/
 platform/linux-generic/odp_packet_io.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/platform/linux-generic/odp_packet_io.c 
b/platform/linux-generic/odp_packet_io.c
index 64c6e452..b4523389 100644
--- a/platform/linux-generic/odp_packet_io.c
+++ b/platform/linux-generic/odp_packet_io.c
@@ -1234,6 +1234,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;

Reply via email to