examples/l2fwd: check if user portmask is valid
authorVipin Varghese <vipin.varghese@intel.com>
Thu, 1 Feb 2018 18:58:42 +0000 (00:28 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Feb 2018 17:52:52 +0000 (18:52 +0100)
commit6726521997fcb35cd1ad5a7ec806772c9f6f39c8
tree14ae648748d51f1d28bc50f5555e7c15675668a4
parentdd21615819a204af082df219653c62cd9db832ed
examples/l2fwd: check if user portmask is valid

User can pass portmask with any value, even invalid mask. The code
checks against actual portmask.

Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/l2fwd/main.c