app/testpmd: fix MAC endian in flow command
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 4 May 2017 17:08:23 +0000 (19:08 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 6 May 2017 08:16:10 +0000 (10:16 +0200)
commit09a670e8716f57ad8fd26761bf8e8d8ff22b85c5
tree9844c8287d771e64dc361f0c213b2e4e7622542e
parent138ae2481e437d7d1549cc59e5ad7129cd87a6a2
app/testpmd: fix MAC endian in flow command

MAC addresses are implicitly handled in network order since they are
actually byte strings, however this is not properly enforced with MAC masks
provided as prefix lengths, which end up inverted on little endian
systems.

Fixes: 6df81b325fa4 ("app/testpmd: add items eth/vlan to flow command")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
app/test-pmd/cmdline_flow.c