[dpdk-dev] [PATCH v2 6/7] ipsec: reorder packet check for esp inbound

2019-03-20 Thread Konstantin Ananyev
Right now check for packet length and padding is done inside cop_prepare(). It makes sense to have all necessary checks in one place at early stage: inside pkt_prepare(). That allows to simplify (and later hopefully) optimize cop_prepare() part. Signed-off-by: Konstantin Ananyev --- lib/librte_i

[dpdk-dev] [PATCH v2 6/7] ipsec: reorder packet check for esp inbound

2019-03-20 Thread Konstantin Ananyev
Right now check for packet length and padding is done inside cop_prepare(). It makes sense to have all necessary checks in one place at early stage: inside pkt_prepare(). That allows to simplify (and later hopefully) optimize cop_prepare() part. Signed-off-by: Konstantin Ananyev --- lib/librte_i