mirror of
https://passt.top/passt
synced 2024-12-22 13:45:32 +00:00
tcp: make tcp_sock_set_bufsize() static (again)
e5eefe7743
("tcp: Refactor to use events instead of states, split out spliced implementation") has exported tcp_sock_set_bufsize() to be able to use it in tcp_splice.c, but6ccab72d9b
has removed its use in tcp_splice.c, so we can set it static again. Fixes:6ccab72d9b
("tcp: Improve handling of fallback if socket pool is empty on new splice") Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
57de44a4bc
commit
6a348cb435
2
tcp.c
2
tcp.c
@ -920,7 +920,7 @@ static void tcp_get_sndbuf(struct tcp_tap_conn *conn)
|
||||
* tcp_sock_set_bufsize() - Set SO_RCVBUF and SO_SNDBUF to maximum values
|
||||
* @s: Socket, can be -1 to avoid check in the caller
|
||||
*/
|
||||
void tcp_sock_set_bufsize(const struct ctx *c, int s)
|
||||
static void tcp_sock_set_bufsize(const struct ctx *c, int s)
|
||||
{
|
||||
int v = INT_MAX / 2; /* Kernel clamps and rounds, no need to check */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user