From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
---
/** Email created from pull request 338 (lumag:pktio_parse_layer)
 ** https://github.com/Linaro/odp/pull/338
 ** Patch: https://github.com/Linaro/odp/pull/338.patch
 ** Base sha: 12fd3a9224a856271934986a1bad981843915d68
 ** Merge commit sha: f11c958e9552610bd1305f996e17c6b79a209a7e
 **/
 example/l2fwd_simple/odp_l2fwd_simple.c | 2 +-
 example/l3fwd/odp_l3fwd.c               | 4 ++--
 example/switch/odp_switch.c             | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/example/l2fwd_simple/odp_l2fwd_simple.c 
b/example/l2fwd_simple/odp_l2fwd_simple.c
index e63814555..2592c3744 100644
--- a/example/l2fwd_simple/odp_l2fwd_simple.c
+++ b/example/l2fwd_simple/odp_l2fwd_simple.c
@@ -52,7 +52,7 @@ static odp_pktio_t create_pktio(const char *name, odp_pool_t 
pool,
        }
 
        odp_pktio_config_init(&config);
-       config.parser.layer = ODP_PKTIO_PARSER_LAYER_L2;
+       config.parser.layer = ODP_PROTO_LAYER_L2;
        odp_pktio_config(pktio, &config);
 
        odp_pktin_queue_param_init(&in_queue_param);
diff --git a/example/l3fwd/odp_l3fwd.c b/example/l3fwd/odp_l3fwd.c
index d5a24aa63..3946546fb 100644
--- a/example/l3fwd/odp_l3fwd.c
+++ b/example/l3fwd/odp_l3fwd.c
@@ -123,8 +123,8 @@ static int create_pktio(const char *name, odp_pool_t pool,
 
        odp_pktio_config_init(&config);
        config.parser.layer = global.cmd_args.error_check ?
-                       ODP_PKTIO_PARSER_LAYER_ALL :
-                       ODP_PKTIO_PARSER_LAYER_L4;
+                       ODP_PROTO_LAYER_ALL :
+                       ODP_PROTO_LAYER_L4;
        odp_pktio_config(pktio, &config);
 
        fwd_pktio->nb_rxq = (int)capa.max_input_queues;
diff --git a/example/switch/odp_switch.c b/example/switch/odp_switch.c
index be4830998..3e52970be 100644
--- a/example/switch/odp_switch.c
+++ b/example/switch/odp_switch.c
@@ -240,7 +240,7 @@ static int create_pktio(const char *dev, int idx, int 
num_rx, int num_tx,
        }
 
        odp_pktio_config_init(&config);
-       config.parser.layer = ODP_PKTIO_PARSER_LAYER_L2;
+       config.parser.layer = ODP_PROTO_LAYER_L2;
        odp_pktio_config(pktio, &config);
 
        odp_pktin_queue_param_init(&pktin_param);

Reply via email to