net/thunderx: disable L3 alignment padding
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 8 Nov 2016 06:31:25 +0000 (12:01 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 10 Nov 2016 23:51:19 +0000 (00:51 +0100)
commit8a946db34aebfac943442cc8544189cca8338cf9
tree24ad53297046ea500f4c7c5cc0ff0024e41dbb9f
parent9d5ba88c2d418e8c5bcd13c785f7db243a9e2fa8
net/thunderx: disable L3 alignment padding

Based on the packet type(IPv4 or IPv6), the nicvf HW aligns
L3 data to the 64bit memory address.
The alignment creates a hole in mbuf(between the
end of headroom and packet data start).
The new revision of the HW provides an option to disable
the L3 alignment feature and make mbuf layout looks
more like other NICs. For better application compatibility,
disabling l3 alignment feature on the hardware revisions it supports.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/thunderx/base/nicvf_hw.c
drivers/net/thunderx/base/nicvf_hw.h
drivers/net/thunderx/base/nicvf_hw_defs.h
drivers/net/thunderx/nicvf_ethdev.c