mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
net: qrtr: ns: Increase socket recvbuf
Increase the socket recvbuf for the ns so control packets are not dropped in heavy traffic situations like ssr. This change will not actually set the recvbuf to INT_MAX but to the system defined rmem_max for sockets. Change-Id: If56eac164a7ea3f0857170d3966c3c174a7460ae Signed-off-by: Chris Lew <clew@codeaurora.org>
This commit is contained in:
parent
197f1cc98f
commit
b99d6355b2
1 changed files with 3 additions and 0 deletions
|
|
@ -730,6 +730,7 @@ static void qrtr_ns_data_ready(struct sock *sk)
|
|||
void qrtr_ns_init(void)
|
||||
{
|
||||
struct sockaddr_qrtr sq;
|
||||
int rx_buf_sz = INT_MAX;
|
||||
int ret;
|
||||
|
||||
INIT_LIST_HEAD(&qrtr_ns.lookups);
|
||||
|
|
@ -762,6 +763,8 @@ void qrtr_ns_init(void)
|
|||
pr_err("failed to bind to socket\n");
|
||||
goto err_wq;
|
||||
}
|
||||
kernel_setsockopt(qrtr_ns.sock, SOL_SOCKET, SO_RCVBUF,
|
||||
(char *)&rx_buf_sz, sizeof(rx_buf_sz));
|
||||
|
||||
qrtr_ns.bcast_sq.sq_family = AF_QIPCRTR;
|
||||
qrtr_ns.bcast_sq.sq_node = QRTR_NODE_BCAST;
|
||||
|
|
|
|||
Loading…
Reference in a new issue