Tung Nguyen 42e5425aa0 tipc: introduce new socket option TIPC_SOCK_RECVQ_USED
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@dektech.com.au>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-19 14:59:05 -07:00
..
2018-03-23 13:12:18 -04:00
2019-04-04 17:34:11 -07:00
2019-03-21 09:56:55 -07:00
2018-12-19 11:49:24 -08:00
2018-08-29 18:04:54 -07:00
2018-12-19 11:49:24 -08:00
2018-12-19 11:49:24 -08:00
2018-07-21 16:23:22 -07:00
2016-07-26 14:26:42 -07:00
2018-12-19 11:49:25 -08:00