mbuf: switch vlan_tci and reserved2 fields
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 23 Sep 2014 11:08:17 +0000 (12:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Oct 2014 12:24:59 +0000 (14:24 +0200)
commita62bfb72b9ca4b0e3b1db5af125b63a16a3e507c
tree463110acc3511b37886d85b3cc804f8098ce7765
parent4cd917b3083c88185a9b420a8831a285b2d68d4c
mbuf: switch vlan_tci and reserved2 fields

Move the vlan_tci field up by two bytes in the mbuf data structure. This
has two effects:
* Ensures the the ixgbe vector driver places the vlan tag in the correct
  place in the mbuf.
* Allows a second vlan tag field, if one is added in the future, to be
  placed after the existing vlan field, rather than before.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_mbuf/rte_mbuf.h