Re: [dpdk-dev] [PATCH v8 06/10] ipsec: add transmit segmentation offload support

2021-10-14 Thread Ananyev, Konstantin
> > On 10/12/2021 5:25 PM, Ananyev, Konstantin wrote: > >>> +/* check if packet will exceed MSS and segmentation is required */ > >>> +static inline int > >>> +esn_outb_nb_segments(struct rte_mbuf *m) { > >> DPDK codying style pls. > >> > >>> + uint16_t segments = 1; > >>> + uint16_t pkt_l3len = m

Re: [dpdk-dev] [PATCH v8 06/10] ipsec: add transmit segmentation offload support

2021-10-13 Thread Nicolau, Radu
On 10/12/2021 5:25 PM, Ananyev, Konstantin wrote: +/* check if packet will exceed MSS and segmentation is required */ +static inline int +esn_outb_nb_segments(struct rte_mbuf *m) { DPDK codying style pls. + uint16_t segments = 1; + uint16_t pkt_l3len = m->pkt_len - m->l2_len; + +

Re: [dpdk-dev] [PATCH v8 06/10] ipsec: add transmit segmentation offload support

2021-10-12 Thread Ananyev, Konstantin
> > +/* check if packet will exceed MSS and segmentation is required */ > > +static inline int > > +esn_outb_nb_segments(struct rte_mbuf *m) { > > DPDK codying style pls. > > > + uint16_t segments = 1; > > + uint16_t pkt_l3len = m->pkt_len - m->l2_len; > > + > > + /* Only support segmenta

Re: [dpdk-dev] [PATCH v8 06/10] ipsec: add transmit segmentation offload support

2021-10-12 Thread Ananyev, Konstantin
> Add support for transmit segmentation offload to inline crypto processing > mode. This offload is not supported by other offload modes, as at a > minimum it requires inline crypto for IPsec to be supported on the > network interface. > > Signed-off-by: Declan Doherty > Signed-off-by: Radu Nic

[dpdk-dev] [PATCH v8 06/10] ipsec: add transmit segmentation offload support

2021-10-11 Thread Radu Nicolau
Add support for transmit segmentation offload to inline crypto processing mode. This offload is not supported by other offload modes, as at a minimum it requires inline crypto for IPsec to be supported on the network interface. Signed-off-by: Declan Doherty Signed-off-by: Radu Nicolau Signed-off