提交 9e2e8f14 编写于 作者: S Sjur Braendeland 提交者: David S. Miller

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: NSjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e5e03ce1
...@@ -30,9 +30,6 @@ ...@@ -30,9 +30,6 @@
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS_NETPROTO(AF_CAIF); MODULE_ALIAS_NETPROTO(AF_CAIF);
#define CAIF_DEF_SNDBUF (4096*10)
#define CAIF_DEF_RCVBUF (4096*100)
/* /*
* CAIF state is re-using the TCP socket states. * CAIF state is re-using the TCP socket states.
* caif_states stored in sk_state reflect the state as reported by * 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, ...@@ -1118,10 +1115,6 @@ static int caif_create(struct net *net, struct socket *sock, int protocol,
/* Store the protocol */ /* Store the protocol */
sk->sk_protocol = (unsigned char) protocol; sk->sk_protocol = (unsigned char) protocol;
/* Sendbuf dictates the amount of outbound packets not yet sent */
sk->sk_sndbuf = CAIF_DEF_SNDBUF;
sk->sk_rcvbuf = CAIF_DEF_RCVBUF;
/* /*
* Lock in order to try to stop someone from opening the socket * Lock in order to try to stop someone from opening the socket
* too early. * too early.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册