[v1,1/1] example: classifier: enable classifier in input queue parameters

Message ID 1507554010-30539-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • example: classifier: enable classifier in input queue parameters
Related show

Commit Message

Github ODP bot Oct. 9, 2017, 1 p.m.
From: Matias Elo <matias.elo@nokia.com>


Enable packet classifier following the latest API spec.

Signed-off-by: Matias Elo <matias.elo@nokia.com>

---
/** Email created from pull request 227 (matiaselo:fix/classifier_example)
 ** https://github.com/Linaro/odp/pull/227
 ** Patch: https://github.com/Linaro/odp/pull/227.patch
 ** Base sha: 3cb452014694b6a20ab2896370a90b4fbded7512
 ** Merge commit sha: d289b200fd6fd99df7d7ce1bc8cd44949c1c348e
 **/
 example/classifier/odp_classifier.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c
index d67fe5ace..691eb196b 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -229,6 +229,7 @@  static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool)
 
 	odp_pktin_queue_param_init(&pktin_param);
 	pktin_param.queue_param.sched.sync = ODP_SCHED_SYNC_ATOMIC;
+	pktin_param.classifier_enable = 1;
 
 	if (odp_pktin_queue_config(pktio, &pktin_param)) {
 		EXAMPLE_ERR("pktin queue config failed for %s\n", dev);