Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/toecore.h
Show All 29 Lines | |||||
#ifndef _NETINET_TOE_H_ | #ifndef _NETINET_TOE_H_ | ||||
#define _NETINET_TOE_H_ | #define _NETINET_TOE_H_ | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
#error "no user-serviceable parts inside" | #error "no user-serviceable parts inside" | ||||
#endif | #endif | ||||
#include <netinet/tcp.h> | |||||
#include <sys/_eventhandler.h> | #include <sys/_eventhandler.h> | ||||
struct tcpopt; | struct tcpopt; | ||||
struct tcphdr; | struct tcphdr; | ||||
struct in_conninfo; | struct in_conninfo; | ||||
struct tcp_info; | struct tcp_info; | ||||
struct nhop_object; | struct nhop_object; | ||||
struct ktls_session; | struct ktls_session; | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | struct toedev { | ||||
/* Update software state */ | /* Update software state */ | ||||
void (*tod_tcp_info)(struct toedev *, struct tcpcb *, | void (*tod_tcp_info)(struct toedev *, struct tcpcb *, | ||||
struct tcp_info *); | struct tcp_info *); | ||||
/* Create a TLS session */ | /* Create a TLS session */ | ||||
int (*tod_alloc_tls_session)(struct toedev *, struct tcpcb *, | int (*tod_alloc_tls_session)(struct toedev *, struct tcpcb *, | ||||
struct ktls_session *, int); | struct ktls_session *, int); | ||||
/* ICMP fragmentation-needed received, adjust PMTU. */ | |||||
void (*tod_pmtu_update)(struct toedev *, struct tcpcb *, tcp_seq, int); | |||||
}; | }; | ||||
typedef void (*tcp_offload_listen_start_fn)(void *, struct tcpcb *); | typedef void (*tcp_offload_listen_start_fn)(void *, struct tcpcb *); | ||||
typedef void (*tcp_offload_listen_stop_fn)(void *, struct tcpcb *); | typedef void (*tcp_offload_listen_stop_fn)(void *, struct tcpcb *); | ||||
EVENTHANDLER_DECLARE(tcp_offload_listen_start, tcp_offload_listen_start_fn); | EVENTHANDLER_DECLARE(tcp_offload_listen_start, tcp_offload_listen_start_fn); | ||||
EVENTHANDLER_DECLARE(tcp_offload_listen_stop, tcp_offload_listen_stop_fn); | EVENTHANDLER_DECLARE(tcp_offload_listen_stop, tcp_offload_listen_stop_fn); | ||||
void init_toedev(struct toedev *); | void init_toedev(struct toedev *); | ||||
Show All 20 Lines |