Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_tom.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | enum { | ||||
TPF_TX_DATA_SENT = (1 << 2), /* some data sent */ | TPF_TX_DATA_SENT = (1 << 2), /* some data sent */ | ||||
TPF_TX_SUSPENDED = (1 << 3), /* tx suspended for lack of resources */ | TPF_TX_SUSPENDED = (1 << 3), /* tx suspended for lack of resources */ | ||||
TPF_SEND_FIN = (1 << 4), /* send FIN after all pending data */ | TPF_SEND_FIN = (1 << 4), /* send FIN after all pending data */ | ||||
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_TLS_STARTING = (1 << 10), /* starting TLS receive */ | ||||
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 */ | TPF_TLS_RECEIVE = (1 << 13), /* should receive TLS records */ | ||||
TPF_TLS_ESTABLISHED = (1 << 14), /* TLS handshake timer initialized */ | TPF_WAITING_FOR_FINAL = (1 << 14), /* waiting for wakeup on final CPL */ | ||||
TPF_WAITING_FOR_FINAL = (1<< 15), /* waiting for wakeup on final CPL */ | |||||
}; | }; | ||||
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 377 Lines • ▼ Show 20 Lines | |||||
void aiotx_init_toep(struct toepcb *); | void aiotx_init_toep(struct toepcb *); | ||||
int t4_aio_queue_aiotx(struct socket *, struct kaiocb *); | int t4_aio_queue_aiotx(struct socket *, struct kaiocb *); | ||||
void t4_init_cpl_io_handlers(void); | void t4_init_cpl_io_handlers(void); | ||||
void t4_uninit_cpl_io_handlers(void); | void t4_uninit_cpl_io_handlers(void); | ||||
void send_abort_rpl(struct adapter *, struct sge_ofld_txq *, int , int); | void send_abort_rpl(struct adapter *, struct sge_ofld_txq *, int , int); | ||||
void send_flowc_wr(struct toepcb *, struct tcpcb *); | void send_flowc_wr(struct toepcb *, struct tcpcb *); | ||||
void send_reset(struct adapter *, struct toepcb *, uint32_t); | void send_reset(struct adapter *, struct toepcb *, uint32_t); | ||||
int send_rx_credits(struct adapter *, struct toepcb *, int); | int send_rx_credits(struct adapter *, struct toepcb *, int); | ||||
void send_rx_modulate(struct adapter *, struct toepcb *); | |||||
void make_established(struct toepcb *, uint32_t, uint32_t, uint16_t); | void make_established(struct toepcb *, uint32_t, uint32_t, uint16_t); | ||||
int t4_close_conn(struct adapter *, struct toepcb *); | int t4_close_conn(struct adapter *, struct toepcb *); | ||||
void t4_rcvd(struct toedev *, struct tcpcb *); | void t4_rcvd(struct toedev *, struct tcpcb *); | ||||
void t4_rcvd_locked(struct toedev *, struct tcpcb *); | void t4_rcvd_locked(struct toedev *, struct tcpcb *); | ||||
int t4_tod_output(struct toedev *, struct tcpcb *); | int t4_tod_output(struct toedev *, struct tcpcb *); | ||||
int t4_send_fin(struct toedev *, struct tcpcb *); | int t4_send_fin(struct toedev *, struct tcpcb *); | ||||
int t4_send_rst(struct toedev *, struct tcpcb *); | int t4_send_rst(struct toedev *, struct tcpcb *); | ||||
void t4_set_tcb_field(struct adapter *, struct sge_wrq *, struct toepcb *, | void t4_set_tcb_field(struct adapter *, struct sge_wrq *, struct toepcb *, | ||||
Show All 32 Lines | |||||
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 *); | void do_rx_data_tls(const struct cpl_rx_data *, struct toepcb *, struct mbuf *); | ||||
void t4_push_ktls(struct adapter *, struct toepcb *, int); | void t4_push_ktls(struct adapter *, struct toepcb *, int); | ||||
void tls_received_starting_data(struct adapter *, struct toepcb *, | |||||
struct sockbuf *, 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_detach(struct toepcb *); | |||||
void tls_establish(struct toepcb *); | |||||
void tls_init_toep(struct toepcb *); | void tls_init_toep(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 |