ipsec: add Tx offload template into SA
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 2 Apr 2019 08:34:37 +0000 (09:34 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Tue, 2 Apr 2019 14:50:24 +0000 (16:50 +0200)
commited2a31871f5068eb87a0e997f18ff7a7d3a42652
treeba3e4df760f37ab9df8082e2562571cc378d7e90
parent8d9c2c3a1f01d58bc70dc0ba95656208ac3d47a4
ipsec: add Tx offload template into SA

Operations to set/update bit-fields often cause compilers
to generate suboptimal code. To avoid such negative effect,
use tx_offload raw value and mask to update l2_len and l3_len
fields within mbufs.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
lib/librte_ipsec/sa.c
lib/librte_ipsec/sa.h