aboutgitcodebugslistschat
path: root/tcp_splice.h
blob: b744ba72e7bf9cf4dc03207fbf0b2c655e3bb2d3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                     
                                             
/* SPDX-License-Identifier: AGPL-3.0-or-later
 * Copyright (c) 2022 Red Hat GmbH
 * Author: Stefano Brivio <sbrivio@redhat.com>
 */

#define TCP_SPLICE_MAX_CONNS			(128 * 1024)

struct tcp_splice_conn;

void tcp_sock_handler_splice(struct ctx *c, union epoll_ref ref,
			     uint32_t events);
void tcp_splice_destroy(struct ctx *c, struct tcp_splice_conn *conn);
void tcp_splice_init(struct ctx *c);
void tcp_splice_timer(struct ctx *c, struct timespec *now);
void tcp_splice_defer_handler(struct ctx *c);