Re: [dpdk-dev] [PATCH v3 2/8] ipsec: add Tx offload template into SA

2019-03-28 Thread Akhil Goyal
On 3/26/2019 9:13 PM, Konstantin Ananyev wrote: > 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 >

[dpdk-dev] [PATCH v3 2/8] ipsec: add Tx offload template into SA

2019-03-26 Thread Konstantin Ananyev
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 --- lib/librte_ipsec/sa.c | 23 ++- lib/l