On Fri, 2017-03-17 at 14:13 -0700, Chris Kuiper wrote: > This adds a new socket option "SO_RXQ_ALLOC" that enables providing > the RX queue buffer allocation as ancillary data from the recvmsg() > system call. The value reported is a byte number and together with > the RX queue size (obtained via getsockopt(SO_RCVBUF) can be used to > calculate a percentage value on how full the socket buffer is. > ---
Seems a lot of overhead, and only UDP would be supported. I very much prefer Josh Hunt proposal ( https://patchwork.ozlabs.org/patch/738250/ ) Ie using a separate getsockopt() call instead of adding code to UDP fast path ?