Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_stacks/fastpath.c
Show First 20 Lines • Show All 2,386 Lines • ▼ Show 20 Lines | struct tcp_function_block __tcp_fastack = { | ||||
.tfb_tcp_output = tcp_output, | .tfb_tcp_output = tcp_output, | ||||
.tfb_tcp_do_segment = tcp_do_segment_fastack, | .tfb_tcp_do_segment = tcp_do_segment_fastack, | ||||
.tfb_tcp_ctloutput = tcp_default_ctloutput | .tfb_tcp_ctloutput = tcp_default_ctloutput | ||||
}; | }; | ||||
static int | static int | ||||
tcp_addfastpaths(module_t mod, int type, void *data) | tcp_addfastpaths(module_t mod, int type, void *data) | ||||
{ | { | ||||
int err=0; | int err = 0; | ||||
switch (type) { | switch (type) { | ||||
case MOD_LOAD: | case MOD_LOAD: | ||||
err = register_tcp_functions(&__tcp_fastack, M_WAITOK); | err = register_tcp_functions(&__tcp_fastack, M_WAITOK); | ||||
if (err) { | if (err) { | ||||
printf("Failed to register fastack module -- err:%d\n", err); | printf("Failed to register fastack module -- err:%d\n", err); | ||||
return(err); | return(err); | ||||
} | } | ||||
Show All 35 Lines |