Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/toecore.c
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
toedev_alloc_tls_session(struct toedev *tod __unused, struct tcpcb *tp __unused, | toedev_alloc_tls_session(struct toedev *tod __unused, struct tcpcb *tp __unused, | ||||
struct ktls_session *tls __unused, int direction __unused) | struct ktls_session *tls __unused, int direction __unused) | ||||
{ | { | ||||
return (EINVAL); | return (EINVAL); | ||||
} | } | ||||
static void | |||||
toedev_pmtu_update(struct toedev *tod __unused, struct tcpcb *tp __unused, | |||||
tcp_seq seq __unused, int mtu __unused) | |||||
{ | |||||
return; | |||||
} | |||||
/* | /* | ||||
* Inform one or more TOE devices about a listening socket. | * Inform one or more TOE devices about a listening socket. | ||||
*/ | */ | ||||
static void | static void | ||||
toe_listen_start(struct inpcb *inp, void *arg) | toe_listen_start(struct inpcb *inp, void *arg) | ||||
{ | { | ||||
struct toedev *t, *tod; | struct toedev *t, *tod; | ||||
struct tcpcb *tp; | struct tcpcb *tp; | ||||
▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | init_toedev(struct toedev *tod) | ||||
tod->tod_route_redirect = toedev_route_redirect; | tod->tod_route_redirect = toedev_route_redirect; | ||||
tod->tod_syncache_added = toedev_syncache_added; | tod->tod_syncache_added = toedev_syncache_added; | ||||
tod->tod_syncache_removed = toedev_syncache_removed; | tod->tod_syncache_removed = toedev_syncache_removed; | ||||
tod->tod_syncache_respond = toedev_syncache_respond; | tod->tod_syncache_respond = toedev_syncache_respond; | ||||
tod->tod_offload_socket = toedev_offload_socket; | tod->tod_offload_socket = toedev_offload_socket; | ||||
tod->tod_ctloutput = toedev_ctloutput; | tod->tod_ctloutput = toedev_ctloutput; | ||||
tod->tod_tcp_info = toedev_tcp_info; | tod->tod_tcp_info = toedev_tcp_info; | ||||
tod->tod_alloc_tls_session = toedev_alloc_tls_session; | tod->tod_alloc_tls_session = toedev_alloc_tls_session; | ||||
tod->tod_pmtu_update = toedev_pmtu_update; | |||||
} | } | ||||
/* | /* | ||||
* Register an active TOE device with the system. This allows it to receive | * Register an active TOE device with the system. This allows it to receive | ||||
* notifications from the kernel. | * notifications from the kernel. | ||||
*/ | */ | ||||
int | int | ||||
register_toedev(struct toedev *tod) | register_toedev(struct toedev *tod) | ||||
▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines |