Re: [dpdk-dev] [PATCH] examples/ip_pipeline: check vlan and mpls params

2017-01-08 Thread Stephen Hemminger
On Fri, 6 Jan 2017 17:21:46 + "Jyoti, Anand B" wrote: > + > + /* Max MPLS label value 20 bits */ > + for (i = 0; i < data->l2.mpls.n_labels; i++) What ever editor or mail system you are using is putting a unicode space in that statement, not visible

[dpdk-dev] [PATCH] examples/ip_pipeline: check vlan and mpls params

2017-01-06 Thread Jyoti, Anand B
>From e346e359ed9c5e8261f09f93629bff56d7c10a11 Mon Sep 17 00:00:00 2001 From: "Jyoti, Anand B" Date: Fri, 6 Jan 2017 08:40:55 +0530 Subject: [PATCH] examples/ip_pipeline: check vlan and mpls params This commit add to CLI command check for the following errors 1. svlan and cvlan IDs greater than 1

[dpdk-dev] [PATCH] examples/ip_pipeline: check vlan and mpls params

2017-01-06 Thread Jyoti, Anand B
diff --git a/examples/ip_pipeline/pipeline/pipeline_routing.c b/examples/ip_pipeline/pipeline/pipeline_routing.c index 3aadbf9..b7faf5b 100644 --- a/examples/ip_pipeline/pipeline/pipeline_routing.c +++ b/examples/ip_pipeline/pipeline/pipeline_routing.c @@ -494,6 +494,26 @@ app_pipeline_routing_add

[dpdk-dev] [PATCH] examples/ip_pipeline: check vlan and mpls params

2017-01-06 Thread Jyoti, Anand B
The attached patch checks VLAN IDs and MPLS label for max value and also checks the max number of supported MPLS labels to avoid array overflow in the CLI command line parameters. Regards, Anand B Jyoti