Re: [dpdk-dev] [PATCH v2] ipsec: include high order bytes of esn in pkt len

2019-05-31 Thread Lukas Bartosik
Hi Konstantin On 30.05.2019 18:51, Ananyev, Konstantin wrote: > Hi Lukasz, > >> diff --git a/lib/librte_ipsec/esp_outb.c b/lib/librte_ipsec/esp_outb.c >> index c798bc4..ed5974b 100644 >> --- a/lib/librte_ipsec/esp_outb.c >> +++ b/lib/librte_ipsec/esp_outb.c >> @@ -126,11 +126,11 @@ outb_tun_pkt_p

Re: [dpdk-dev] [PATCH v2] ipsec: include high order bytes of esn in pkt len

2019-05-30 Thread Ananyev, Konstantin
Hi Lukasz, > diff --git a/lib/librte_ipsec/esp_outb.c b/lib/librte_ipsec/esp_outb.c > index c798bc4..ed5974b 100644 > --- a/lib/librte_ipsec/esp_outb.c > +++ b/lib/librte_ipsec/esp_outb.c > @@ -126,11 +126,11 @@ outb_tun_pkt_prepare(struct rte_ipsec_sa *sa, > rte_be64_t sqc, > > /* pad len

[dpdk-dev] [PATCH v2] ipsec: include high order bytes of esn in pkt len

2019-05-23 Thread Lukasz Bartosik
When esn is used then high-order 32 bits are included in ICV calculation however are not transmitted. Update packet length to be consistent with auth data offset and length before crypto operation. High-order 32 bits of esn will be removed from packet length in crypto post processing. Signed-off-b