[ovs-dev] 答复: 答复: [PATCH] socket-util: Introduce emulation and wrapper for recvmmsg().

Ben Pfaff blp at ovn.org
Tue Jan 7 20:10:40 UTC 2020


On Mon, Dec 23, 2019 at 12:22:52AM +0000, Yi Yang (杨燚)-云服务集团 wrote:
> Ben, socket.h in master does include sendmmsg
> 
> https://github.com/openvswitch/ovs/blob/master/include/sparse/sys/socket.h#L165
> 
> Per your explanation, I understood why you call recvmsg there, so I don't have other comments.
> 
> As William explained in his RFC patch, I think TPACKET_V3 is the best way to fix this. I tried af_packet to use veth in OVS DPDK, it's performance is 2 times more than my patch, about 4Gbps, for my patch, veth performance is about 1.47Gbps, af_packet just used TPACKET_V2, TPACKET_V3 should be much better than TPACKET_V2 per William's explanation.

OK.  Do you want to continue working to use recvmmsg() in OVS?  Or do
you want to withdraw the idea in favor of TPACKET_V3?  The possible
advantage of recvmmsg() is that it's going to be available pretty much
everywhere, whereas TPACKET_V3 is a more recent addition to Linux.


More information about the dev mailing list