Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/cxgbei/icl_cxgbei.c
Show First 20 Lines • Show All 585 Lines • ▼ Show 20 Lines | set_ulp_mode_iscsi(struct adapter *sc, struct toepcb *toep, u_int ulp_submode) | ||||
CTR3(KTR_CXGBE, "%s: tid %u, ULP_MODE_ISCSI, submode=%#x", | CTR3(KTR_CXGBE, "%s: tid %u, ULP_MODE_ISCSI, submode=%#x", | ||||
__func__, toep->tid, ulp_submode); | __func__, toep->tid, ulp_submode); | ||||
val = V_TCB_ULP_TYPE(ULP_MODE_ISCSI) | V_TCB_ULP_RAW(ulp_submode); | val = V_TCB_ULP_TYPE(ULP_MODE_ISCSI) | V_TCB_ULP_RAW(ulp_submode); | ||||
t4_set_tcb_field(sc, toep->ctrlq, toep, W_TCB_ULP_TYPE, | t4_set_tcb_field(sc, toep->ctrlq, toep, W_TCB_ULP_TYPE, | ||||
V_TCB_ULP_TYPE(M_TCB_ULP_TYPE) | V_TCB_ULP_RAW(M_TCB_ULP_RAW), val, | V_TCB_ULP_TYPE(M_TCB_ULP_TYPE) | V_TCB_ULP_RAW(M_TCB_ULP_RAW), val, | ||||
0, 0); | 0, 0); | ||||
val = V_TF_RX_FLOW_CONTROL_DISABLE(1ULL); | |||||
t4_set_tcb_field(sc, toep->ctrlq, toep, W_TCB_T_FLAGS, val, val, 0, 0); | |||||
} | } | ||||
/* | /* | ||||
* XXXNP: Who is responsible for cleaning up the socket if this returns with an | * XXXNP: Who is responsible for cleaning up the socket if this returns with an | ||||
* error? Review all error paths. | * error? Review all error paths. | ||||
* | * | ||||
* XXXNP: What happens to the socket's fd reference if the operation is | * XXXNP: What happens to the socket's fd reference if the operation is | ||||
* successful, and how does that affect the socket's life cycle? | * successful, and how does that affect the socket's life cycle? | ||||
▲ Show 20 Lines • Show All 494 Lines • Show Last 20 Lines |