[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190419.145936.1423137763245364813.davem@davemloft.net>
Date: Fri, 19 Apr 2019 14:59:36 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jon.maloy@...csson.com
Cc: tung.q.nguyen@...tech.com.au, netdev@...r.kernel.org,
tipc-discussion@...ts.sourceforge.net
Subject: Re: [tipc-discussion][net-next v1] tipc: introduce new socket
option TIPC_SOCK_RECVQ_USED
From: Jon Maloy <jon.maloy@...csson.com>
Date: Fri, 19 Apr 2019 21:51:31 +0000
>
>
>> -----Original Message-----
>> From: netdev-owner@...r.kernel.org <netdev-owner@...r.kernel.org>
>> On Behalf Of David Miller
>> Sent: 19-Apr-19 17:41
>> To: Tung Quang Nguyen <tung.q.nguyen@...tech.com.au>
>> Cc: netdev@...r.kernel.org; tipc-discussion@...ts.sourceforge.net
>> Subject: Re: [tipc-discussion][net-next v1] tipc: introduce new socket option
>> TIPC_SOCK_RECVQ_USED
>>
>> From: Tung Nguyen <tung.q.nguyen@...tech.com.au>
>> Date: Thu, 18 Apr 2019 21:02:19 +0700
>>
>> > When using TIPC_SOCK_RECVQ_DEPTH for getsockopt(), it returns the
>> > number of buffers in receive socket buffer which is not so helpful for
>> > user space applications.
>> >
>> > This commit introduces the new option TIPC_SOCK_RECVQ_USED which
>> > returns the current allocated bytes of the receive socket buffer.
>> > This helps user space applications dimension its buffer usage to avoid
>> > buffer overload issue.
>> >
>> > Signed-off-by: Tung Nguyen <tung.q.nguyen@...tech.com.au>
>>
>> TIPC folks, please review.
>
> Acked-by: Jon Maloy <jon.maloy@...csson.com>
Applied, thanks for reviewing.
> It would of course be nicer if we could recycle
> TIPC_SOCK_RECV_QUEUE_DEPTH for this purpose, but that would mean
> altering the current ABI and incur a (probably very low) risk of
> breaking existing application. I am not particularly happy with
> this, but do we have users who claim it would be useful for them.
Better safe than sorry when it comes to user facing ABIs.
Powered by blists - more mailing lists