port: fix unaligned access to metadata
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Fri, 5 Jun 2015 14:55:10 +0000 (16:55 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 22 Jun 2015 20:10:46 +0000 (22:10 +0200)
commit1129992baa61d72c5d9820b1b2aa615d1bbf523b
tree91eb71c38cc7ae0ea9cf5b8d5e7749240cf38f19
parent6c7216eefd631b23a167f595c99e2c1c0470f7b4
port: fix unaligned access to metadata

Fix RTE_MBUF_METADATA macros to allow for unaligned accesses to
meta-data fields.
Forcing aligned accesses is not really required, so this is removing an
unneeded constraint.
This issue was met during testing of the new version of the ip_pipeline
application. There is no performance impact.
This change has no ABI impact, as the previous code that uses aligned
accesses continues to run without any issues.

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_pipeline/rte_pipeline.c
lib/librte_port/rte_port.h
lib/librte_table/rte_table_array.c
lib/librte_table/rte_table_hash_ext.c
lib/librte_table/rte_table_hash_key16.c
lib/librte_table/rte_table_hash_key32.c
lib/librte_table/rte_table_hash_key8.c
lib/librte_table/rte_table_hash_lru.c
lib/librte_table/rte_table_lpm.c
lib/librte_table/rte_table_lpm_ipv6.c