examples/proxy: move some of the tricky cqe -> buffer conversion to helpers

Add replenish_buffer() which deals with adding a buffer back, and clean
up the argument passing around it. This gets all of this out of the
generic handling code, so it's easier to read.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed