Hi, ben Thanks for your hint, i used vlib_buffer_clone() to copy packet, but the performance is drop i found that vlib_buffer_clone is use vlib_buffer_alloc(),is there other way to improve performance?
by the way,i also used rte_mbuf_from_vlib_buffer() to use dpdk‘s rte_mbuf to use dpdk buf refcnt, but this way need to copy vpp's buffer to dpdk buffer, can vpp use dpdk's rte_mbuf directly? best wanghe Benoit Ganne (bganne) via lists.fd.io <bganne=cisco....@lists.fd.io> 于2022年8月1日周一 15:08写道: > You probably want to use vlib_buffer_clone() instead. > > Best > ben > > > -----Original Message----- > > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of NUAA?? > > Sent: Monday, August 1, 2022 4:53 > > To: vpp-dev@lists.fd.io > > Subject: [vpp-dev] Copy packet forwarding performance issues > > > > Hi,vpp experts > > I have a task that send one packet to three NIC > > my method is that use "vlib_buffer_alloc" function to copy three buffer, > > but this method is poor performance,about that if vpp is 10G bps, once > > copy will reduce 1.5G bps > > > > is vpp has like dpdk buffer use refcnt count to avoid copy buffer? can > > you give me some suggestions to send packet with high performence? > > > > Best wish > > wanghe > > > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21757): https://lists.fd.io/g/vpp-dev/message/21757 Mute This Topic: https://lists.fd.io/mt/92739833/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-