numam-dpdk/lib/librte_pmd_ixgbe
Bruce Richardson 7869536f3f mbuf: flatten struct vlan_macip
The vlan_macip structure combined a vlan tag id with l2 and l3 headers
lengths for tracking offloads. However, this structure was only used as
a unit by the e1000 and ixgbe drivers, not generally.

This patch removes the structure from the mbuf header and places the
fields into the mbuf structure directly at the required point, without
any net effect on the structure layout. This allows us to treat the vlan
tags and header length fields as separate for future mbuf changes. The
drivers which were written to use the combined structure still do so,
using a driver-local definition of it.

Reduce perf regression caused by splitting vlan_macip field. This is
done by providing a single uint16_t value to allow writing/clearing
the l2 and l3 lengths together. There is still a small perf hit to the
slow path TX due to the reads from vlan_tci and l2/l3 lengths being
separated. (<5% in my tests with testpmd with no extra params).
Unfortunately, this cannot be eliminated, without restoring the vlan
tags and l2/l3 lengths as a combined 32-bit field. This would prevent
us from ever looking to move those fields about and is an artificial tie
that applies only for performance in igb and ixgbe drivers. Therefore,
this patch keeps the vlan_tci field separate from the lengths as the
best solution going forward.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2014-09-17 11:29:17 +02:00
..
ixgbe ixgbe/base: fix build with debug 2014-07-02 22:33:22 +02:00
ixgbe_82599_bypass.c ixgbe: rework fix of media type for bypass device 2014-06-26 07:16:53 +02:00
ixgbe_bypass_api.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_bypass_defines.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_bypass.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_bypass.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_ethdev.c ethdev: add link state interrupt flag 2014-06-27 02:21:50 +02:00
ixgbe_ethdev.h ixgbe: add filters 2014-06-16 19:55:14 +02:00
ixgbe_fdir.c ixgbe/base: flow director changes 2014-06-18 23:31:59 +02:00
ixgbe_logs.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_pf.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_rxtx_vec.c mbuf: remove the rte_pktmbuf structure 2014-09-17 11:27:51 +02:00
ixgbe_rxtx.c mbuf: flatten struct vlan_macip 2014-09-17 11:29:17 +02:00
ixgbe_rxtx.h mbuf: flatten struct vlan_macip 2014-09-17 11:29:17 +02:00
Makefile ixgbe/base: disable some clang warnings 2014-07-19 01:54:07 +02:00