mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
net: qrtr: ns: Increase socket recvbuf
Increase the socket recvbuf for the ns so control packets are not dropped in heavy traffic situations. This change will not actually set the recvbuf to INT_MAX but to the system defined rmem_max for sockets. Change-Id: I860cc1052080cc6e683b44bef1dd9f8fc1899f31 Signed-off-by: Jay Jayanna <jayanna@codeaurora.org> Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
parent
a729cfdb0b
commit
16c6929261
|
|
@ -675,6 +675,7 @@ static void qrtr_ns_data_ready(struct sock *sk)
|
|||
int qrtr_ns_init(void)
|
||||
{
|
||||
struct sockaddr_qrtr sq;
|
||||
int rx_buf_sz = INT_MAX;
|
||||
int ret;
|
||||
|
||||
INIT_LIST_HEAD(&qrtr_ns.lookups);
|
||||
|
|
@ -711,6 +712,9 @@ int qrtr_ns_init(void)
|
|||
goto err_wq;
|
||||
}
|
||||
|
||||
sock_setsockopt(qrtr_ns.sock, SOL_SOCKET, SO_RCVBUF,
|
||||
KERNEL_SOCKPTR((void *)&rx_buf_sz), sizeof(rx_buf_sz));
|
||||
|
||||
qrtr_ns.bcast_sq.sq_family = AF_QIPCRTR;
|
||||
qrtr_ns.bcast_sq.sq_node = QRTR_NODE_BCAST;
|
||||
qrtr_ns.bcast_sq.sq_port = QRTR_PORT_CTRL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user