How to use AF_XDP in media connections

Roberts Tyrion <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CABJTkezEc99OmEBMbnOq901gpXmUfYXUzToJXTDZQSdTseTnmA@mail.gmail.com>
Hi XDP experts,

Recently our team is trying to use AF_XDP to improve our socket
performance in media servers, which will spend 50%+ CPU resources in
socket send and recv functions. However, we still hear the different
voices that VPP/DPDK is one better option. I read many documents, and
found that if applications don’t attach packages, DPDK is better, and
if applications will process packages, XDP will approach the
performance of DPDK. For our applications, servers will create
hundreds of sockets to receive h264 streams, and send out these
streams into the different sockets. Based on the above descriptions,
do you think which solution is better one?

Another question is about AF_XDP usage: by this document,
https://www.kernel.org/doc/html/latest/networking/af_xdp.html

We need to use ethtool to map the ingress port and egress port, but
our application can create socket connections randomly, how to use
af_xdp to resolve this problem.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.