app/testpmd: fix use of offload flags
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 26 Nov 2014 15:04:49 +0000 (16:04 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 26 Nov 2014 18:35:55 +0000 (19:35 +0100)
commitcf543fdbc1861a37f9da89a0bcbd50d06146d473
treecdb4684c61eedead65063c8fbdeaa7b4601c2dc1
parente4a1c50e69f86944cb49384eb3211d080cb44f7a
app/testpmd: fix use of offload flags

In testpmd the rte_port->tx_ol_flags flag was used in 2 incompatible
manners:
- sometimes used with testpmd specific flags (0xff for checksums, and
  bit 11 for vlan)
- sometimes assigned to m->ol_flags directly, which is wrong in case
  of checksum flags

This commit replaces the hardcoded values by named definitions, which
are not compatible with mbuf flags. The testpmd forward engines are
fixed to use the flags properly.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test-pmd/config.c
app/test-pmd/csumonly.c
app/test-pmd/macfwd.c
app/test-pmd/macswap.c
app/test-pmd/testpmd.h
app/test-pmd/txonly.c