FD.io VPP
v20.09-64-g4f7b92f0a
Vector Packet Processing
|
Go to the source code of this file.
Functions | |
static tcp_header_t * | tcp_buffer_hdr (vlib_buffer_t *b) |
static tcp_connection_t * | tcp_connection_get (u32 conn_index, u32 thread_index) |
static tcp_connection_t * | tcp_connection_get_if_valid (u32 conn_index, u32 thread_index) |
static void | tcp_connection_set_state (tcp_connection_t *tc, tcp_state_t state) |
static tcp_connection_t * | tcp_listener_get (u32 tli) |
static tcp_connection_t * | tcp_half_open_connection_get (u32 conn_index) |
static u32 | tcp_bytes_out (const tcp_connection_t *tc) |
Our estimate of the number of bytes that have left the network. More... | |
static u32 | tcp_flight_size (const tcp_connection_t *tc) |
Our estimate of the number of bytes in flight (pipe size) More... | |
static u32 | tcp_initial_cwnd (const tcp_connection_t *tc) |
Initial cwnd as per RFC5681. More... | |
static void | tcp_cwnd_accumulate (tcp_connection_t *tc, u32 thresh, u32 bytes) |
static u32 | tcp_loss_wnd (const tcp_connection_t *tc) |
static u32 | tcp_available_snd_wnd (const tcp_connection_t *tc) |
static u32 | tcp_available_output_snd_space (const tcp_connection_t *tc) |
static u32 | tcp_available_cc_snd_space (const tcp_connection_t *tc) |
Estimate of how many bytes we can still push into the network. More... | |
static u8 | tcp_is_lost_fin (tcp_connection_t *tc) |
static u32 | tcp_time_now (void) |
static u32 | tcp_time_now_w_thread (u32 thread_index) |
static u32 | tcp_tstamp (tcp_connection_t *tc) |
Generate timestamp for tcp connection. More... | |
static f64 | tcp_time_now_us (u32 thread_index) |
static u32 | tcp_set_time_now (tcp_worker_ctx_t *wrk) |
static tcp_connection_t * | tcp_input_lookup_buffer (vlib_buffer_t *b, u8 thread_index, u32 *error, u8 is_ip4, u8 is_nolookup) |
static void | tcp_init_w_buffer (tcp_connection_t *tc, vlib_buffer_t *b, u8 is_ip4) |
Initialize connection by gleaning network and rcv params from buffer. More... | |
static void | tcp_update_rto (tcp_connection_t *tc) |
static u8 | tcp_is_descheduled (tcp_connection_t *tc) |
static void * | vlib_buffer_push_tcp_net_order (vlib_buffer_t *b, u16 sp, u16 dp, u32 seq, u32 ack, u8 tcp_hdr_opts_len, u8 flags, u16 wnd) |
Push TCP header to buffer. More... | |
static void * | vlib_buffer_push_tcp (vlib_buffer_t *b, u16 sp_net, u16 dp_net, u32 seq, u32 ack, u8 tcp_hdr_opts_len, u8 flags, u16 wnd) |
Push TCP header to buffer. More... | |
|
inlinestatic |
Estimate of how many bytes we can still push into the network.
Definition at line 171 of file tcp_inlines.h.
|
inlinestatic |
Definition at line 156 of file tcp_inlines.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Our estimate of the number of bytes that have left the network.
Definition at line 81 of file tcp_inlines.h.
|
inlinestatic |
Definition at line 30 of file tcp_inlines.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Our estimate of the number of bytes in flight (pipe size)
Definition at line 94 of file tcp_inlines.h.
|
inlinestatic |
Definition at line 67 of file tcp_inlines.h.
|
inlinestatic |
Initialize connection by gleaning network and rcv params from buffer.
tc | connection to initialize |
b | buffer whose current data is pointing at ip |
is_ip4 | flag set to 1 if using ip4 |
Definition at line 328 of file tcp_inlines.h.
|
inlinestatic |
Initial cwnd as per RFC5681.
Definition at line 110 of file tcp_inlines.h.
|
inlinestatic |
Definition at line 225 of file tcp_inlines.h.
|
inlinestatic |
Definition at line 380 of file tcp_inlines.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 143 of file tcp_inlines.h.
|
inlinestatic |
Definition at line 219 of file tcp_inlines.h.
|
inlinestatic |
Definition at line 191 of file tcp_inlines.h.
Definition at line 213 of file tcp_inlines.h.
|
inlinestatic |
Generate timestamp for tcp connection.
Definition at line 206 of file tcp_inlines.h.
|
inlinestatic |
|
inlinestatic |
Push TCP header to buffer.
b | - buffer to write the header to |
sp_net | - source port net order |
dp_net | - destination port net order |
seq | - sequence number host order |
ack | - ack number host order |
tcp_hdr_opts_len | - header and options length in bytes |
flags | - header flags |
wnd | - window size |
Definition at line 438 of file tcp_inlines.h.
|
inlinestatic |
Push TCP header to buffer.
vm | - vlib_main |
b | - buffer to write the header to |
sp_net | - source port net order |
dp_net | - destination port net order |
seq | - sequence number net order |
ack | - ack number net order |
tcp_hdr_opts_len | - header and options length in bytes |
flags | - header flags |
wnd | - window size |
Definition at line 401 of file tcp_inlines.h.