Skip to content

Commit 9e2e8f1

Browse files
Sjur Braendelanddavem330
authored andcommitted
caif: Use default send and receive buffer size in caif_socket.
CAIF sockets should use socket's default send and receive buffers sizes. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e5e03ce commit 9e2e8f1

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎net/caif/caif_socket.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
MODULE_LICENSE("GPL");
3131
MODULE_ALIAS_NETPROTO(AF_CAIF);
3232

33-
#define CAIF_DEF_SNDBUF (4096*10)
34-
#define CAIF_DEF_RCVBUF (4096*100)
35-
3633
/*
3734
* CAIF state is re-using the TCP socket states.
3835
* caif_states stored in sk_state reflect the state as reported by
@@ -1118,10 +1115,6 @@ static int caif_create(struct net *net, struct socket *sock, int protocol,
11181115
/* Store the protocol */
11191116
sk->sk_protocol = (unsigned char) protocol;
11201117

1121-
/* Sendbuf dictates the amount of outbound packets not yet sent */
1122-
sk->sk_sndbuf = CAIF_DEF_SNDBUF;
1123-
sk->sk_rcvbuf = CAIF_DEF_RCVBUF;
1124-
11251118
/*
11261119
* Lock in order to try to stop someone from opening the socket
11271120
* too early.

0 commit comments

Comments
 (0)