diff mbox series

[API-NEXT,v1,5/6] example: use odp_proto_layer_t instead of odp_pktio_parser_layer_t

Message ID 1513170009-9281-6-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v1,1/6] api: pktio: start switching to using odp_proto_layer_t | expand

Commit Message

Github ODP bot Dec. 13, 2017, 1 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@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: d96a8207591fbcaac25b79286d7d72a537354c1f
 ** Merge commit sha: 874b90ec6730e9189edd69774044ef32d7f0d95f
 **/
 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 mbox series

Patch

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);