Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_tom.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | enum { | ||||
TPF_FIN_SENT = (1 << 5), /* FIN has been sent */ | TPF_FIN_SENT = (1 << 5), /* FIN has been sent */ | ||||
TPF_ABORT_SHUTDOWN = (1 << 6), /* connection abort is in progress */ | TPF_ABORT_SHUTDOWN = (1 << 6), /* connection abort is in progress */ | ||||
TPF_CPL_PENDING = (1 << 7), /* haven't received the last CPL */ | TPF_CPL_PENDING = (1 << 7), /* haven't received the last CPL */ | ||||
TPF_SYNQE = (1 << 8), /* synq_entry, not really a toepcb */ | TPF_SYNQE = (1 << 8), /* synq_entry, not really a toepcb */ | ||||
TPF_SYNQE_EXPANDED = (1 << 9), /* toepcb ready, tid context updated */ | TPF_SYNQE_EXPANDED = (1 << 9), /* toepcb ready, tid context updated */ | ||||
TPF_FORCE_CREDITS = (1 << 10), /* always send credits */ | TPF_FORCE_CREDITS = (1 << 10), /* always send credits */ | ||||
TPF_KTLS = (1 << 11), /* send TLS records from KTLS */ | TPF_KTLS = (1 << 11), /* send TLS records from KTLS */ | ||||
TPF_INITIALIZED = (1 << 12), /* init_toepcb has been called */ | TPF_INITIALIZED = (1 << 12), /* init_toepcb has been called */ | ||||
TPF_TLS_RECEIVE = (1 << 13), /* should receive TLS records */ | |||||
}; | }; | ||||
enum { | enum { | ||||
DDP_OK = (1 << 0), /* OK to turn on DDP */ | DDP_OK = (1 << 0), /* OK to turn on DDP */ | ||||
DDP_SC_REQ = (1 << 1), /* state change (on/off) requested */ | DDP_SC_REQ = (1 << 1), /* state change (on/off) requested */ | ||||
DDP_ON = (1 << 2), /* DDP is turned on */ | DDP_ON = (1 << 2), /* DDP is turned on */ | ||||
DDP_BUF0_ACTIVE = (1 << 3), /* buffer 0 in use (not invalidated) */ | DDP_BUF0_ACTIVE = (1 << 3), /* buffer 0 in use (not invalidated) */ | ||||
DDP_BUF1_ACTIVE = (1 << 4), /* buffer 1 in use (not invalidated) */ | DDP_BUF1_ACTIVE = (1 << 4), /* buffer 1 in use (not invalidated) */ | ||||
▲ Show 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | |||||
void handle_ddp_close(struct toepcb *, struct tcpcb *, uint32_t); | void handle_ddp_close(struct toepcb *, struct tcpcb *, uint32_t); | ||||
void handle_ddp_indicate(struct toepcb *); | void handle_ddp_indicate(struct toepcb *); | ||||
void insert_ddp_data(struct toepcb *, uint32_t); | void insert_ddp_data(struct toepcb *, uint32_t); | ||||
const struct offload_settings *lookup_offload_policy(struct adapter *, int, | const struct offload_settings *lookup_offload_policy(struct adapter *, int, | ||||
struct mbuf *, uint16_t, struct inpcb *); | struct mbuf *, uint16_t, struct inpcb *); | ||||
/* t4_tls.c */ | /* t4_tls.c */ | ||||
bool can_tls_offload(struct adapter *); | bool can_tls_offload(struct adapter *); | ||||
void do_rx_data_tls(const struct cpl_rx_data *, struct toepcb *, struct mbuf *); | |||||
int t4_ctloutput_tls(struct socket *, struct sockopt *); | int t4_ctloutput_tls(struct socket *, struct sockopt *); | ||||
void t4_push_tls_records(struct adapter *, struct toepcb *, int); | void t4_push_tls_records(struct adapter *, struct toepcb *, int); | ||||
void t4_push_ktls(struct adapter *, struct toepcb *, int); | void t4_push_ktls(struct adapter *, struct toepcb *, int); | ||||
void t4_tls_mod_load(void); | void t4_tls_mod_load(void); | ||||
void t4_tls_mod_unload(void); | void t4_tls_mod_unload(void); | ||||
void tls_establish(struct toepcb *); | void tls_establish(struct toepcb *); | ||||
void tls_init_toep(struct toepcb *); | void tls_init_toep(struct toepcb *); | ||||
int tls_rx_key(struct toepcb *); | int tls_rx_key(struct toepcb *); | ||||
void tls_stop_handshake_timer(struct toepcb *); | void tls_stop_handshake_timer(struct toepcb *); | ||||
int tls_tx_key(struct toepcb *); | int tls_tx_key(struct toepcb *); | ||||
void tls_uninit_toep(struct toepcb *); | void tls_uninit_toep(struct toepcb *); | ||||
int tls_alloc_ktls(struct toepcb *, struct ktls_session *, int); | int tls_alloc_ktls(struct toepcb *, struct ktls_session *, int); | ||||
#endif | #endif |