Re: [PATCH v2 1/2] net/memif: add a Rx fast path

2022-07-01 Thread Stephen Hemminger
On Fri, 1 Jul 2022 10:28:14 + Joyce Kong wrote: > n_slots = last_slot - cur_slot; > + if (likely(mbuf_size >= pmd->cfg.pkt_buffer_size)) { > + while (n_slots && n_rx_pkts < nb_pkts) { > + mbuf_head = rte_pktmbuf_alloc(mq->mempool); > +

[PATCH v2 1/2] net/memif: add a Rx fast path

2022-07-01 Thread Joyce Kong
For memif non-zero-copy mode, there is a branch to compare the mbuf and memif buffer size during memory copying. Add a fast memory copy path by removing this branch with mbuf and memif buffer size defined at compile time. The removal of the branch leads to considerable performance uplift. The Rx fa