examples/ip_pipeline: fix port range filtering
authorShyam Kumar Shrivastav <shrivastav.shyam@gmail.com>
Wed, 22 Mar 2017 01:35:35 +0000 (21:35 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Apr 2017 00:10:20 +0000 (02:10 +0200)
commitd5faec799c6edcb65773db0c99202a9d5da8bac4
treeb5648a3c852c227be3acf9cd910fb497235fe292
parentc1e07f036d0ddb23adc308bf0892498126e05645
examples/ip_pipeline: fix port range filtering

Firewall ACL definition need to use same input index for source and
destination ports as these are 16 bits and would fit in one ACL
field of 32 bits. This is required as per librte_acl API. Without this
UDP/TCP source and destination ports filtering (and for that
matter ICMP type/code filtering) does not work.

Signed-off-by: Shyam Kumar Shrivastav <shrivastav.shyam@gmail.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/pipeline/pipeline_firewall_be.c