vlib: move offload flags to 1st cacheline in vlib_buffer_t
Type: improvement Some tests i.e. ipsec see performance regression when offload flags are moved to 2nd cacheline. This patch moves them back to 1st cacheline. Change-Id: I6ead45ff6d2c467b0d248f409e27c2ba31758741 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
baa18701b9
commit
a7e830ed46
@@ -60,7 +60,7 @@ avf_tx_prepare_cksum (vlib_buffer_t * b, u8 is_tso)
|
||||
if (!is_tso && !(b->flags & VNET_BUFFER_F_OFFLOAD))
|
||||
return 0;
|
||||
|
||||
u32 oflags = vnet_buffer2 (b)->oflags;
|
||||
u32 oflags = vnet_buffer (b)->oflags;
|
||||
u32 is_tcp = is_tso || oflags & VNET_BUFFER_OFFLOAD_F_TCP_CKSUM;
|
||||
u32 is_udp = !is_tso && oflags & VNET_BUFFER_OFFLOAD_F_UDP_CKSUM;
|
||||
u32 is_ip4 = b->flags & VNET_BUFFER_F_IS_IP4;
|
||||
|
Reference in New Issue
Block a user