xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

Af_xdp and ring

Open Adarsh97 opened this issue 3 years ago • 2 comments

What is the purpose of having 4 rings including rx,tx, completion and fill ring? Two rings are not sufficient ?

Adarsh97 avatar Nov 03 '21 07:11 Adarsh97

@magnus-karlsson @tohojo @netoptimizer @davem330 @dmitris please explain about it.

Adarsh97 avatar Nov 05 '21 18:11 Adarsh97

It is for out-of-order completions for the Tx path (Tx and completion rings) and to be able to be able to disassociate providing buffers to the kernel with receiving packets. For an app where everything is in order and every buffer received is sent directly back to the kernel, two rings would have been sufficient.

magnus-karlsson avatar Nov 09 '21 10:11 magnus-karlsson