Re: [PATCH v6] ip_frag: add IPv4 fragment copy packet API

2022-08-07 Thread Konstantin Ananyev
At 2022-07-25 23:42:06, "Stephen Hemminger" wrote: On Sun, 24 Jul 2022 16:10:03 +0800 Huichao Cai wrote: + + /* +* Formal parameter checking. +*/ + if (unlikely(pkt_in == NULL) || unlikely(pkts_out == NULL) || + unlikely(nb_pkts_out == 0) || unlikely(

Re: [PATCH v6] ip_frag: add IPv4 fragment copy packet API

2022-08-07 Thread Konstantin Ananyev
24/07/2022 09:10, Huichao Cai пишет: Some NIC drivers support MBUF_FAST_FREE(Device supports optimization for fast release of mbufs. When set application must guarantee that per-queue all mbufs comes from the same mempool,has refcnt = 1,direct and non-segmented.)offload. In order to adapt to this

Re:Re: [PATCH v6] ip_frag: add IPv4 fragment copy packet API

2022-07-25 Thread Huichao Cai
At 2022-07-25 23:42:06, "Stephen Hemminger" wrote: >On Sun, 24 Jul 2022 16:10:03 +0800 >Huichao Cai wrote: > >> + >> +/* >> + * Formal parameter checking. >> + */ >> +if (unlikely(pkt_in == NULL) || unlikely(pkts_out == NULL) || >> +unlikely(nb_pkts_out

Re: [PATCH v6] ip_frag: add IPv4 fragment copy packet API

2022-07-25 Thread Stephen Hemminger
On Sun, 24 Jul 2022 16:10:03 +0800 Huichao Cai wrote: > + > + /* > + * Formal parameter checking. > + */ > + if (unlikely(pkt_in == NULL) || unlikely(pkts_out == NULL) || > + unlikely(nb_pkts_out == 0) || unlikely(pool_direct == NULL) || > + unlikely(mtu_size < R

[PATCH v6] ip_frag: add IPv4 fragment copy packet API

2022-07-24 Thread Huichao Cai
Some NIC drivers support MBUF_FAST_FREE(Device supports optimization for fast release of mbufs. When set application must guarantee that per-queue all mbufs comes from the same mempool,has refcnt = 1,direct and non-segmented.)offload. In order to adapt to this offload function, add this API. Add so