[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

[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
>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

[dpdk-dev] [PATCH v2] examples/ip_pipeline: check VLAN and MPLS params

2017-01-08 Thread Jyoti, Anand B
This commit add to CLI command check for the following errors 1. SVLAN and CVLAN IDs greater than 12 bits 2. MPLS ID greater than 20 bits 3. max number of supported MPLS labels to avoid array overflow It prevents running CLI commands with invalid parameters. Signed-off-by: Anand B Jyoti Acked-by