[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1489788070.28631.322.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Fri, 17 Mar 2017 15:01:10 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Chris Kuiper <ckuiper@...gle.com>, Josh Hunt <johunt@...mai.com>
Cc: netdev@...r.kernel.org, pgynther@...gle.com
Subject: Re: [PATCH] net: udp: add socket option to report RX queue level
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 ?
Powered by blists - more mailing lists