Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
Show First 20 Lines • Show All 691 Lines • ▼ Show 20 Lines | if (ic->ic_header_crc32c) { | ||||
ISCSI_HEADER_DIGEST_SIZE; | ISCSI_HEADER_DIGEST_SIZE; | ||||
} | } | ||||
if (ic->ic_data_crc32c) { | if (ic->ic_data_crc32c) { | ||||
icc->ulp_submode |= ULP_CRC_DATA; | icc->ulp_submode |= ULP_CRC_DATA; | ||||
ic->ic_max_data_segment_length -= | ic->ic_max_data_segment_length -= | ||||
ISCSI_DATA_DIGEST_SIZE; | ISCSI_DATA_DIGEST_SIZE; | ||||
} | } | ||||
so->so_options |= SO_NO_DDP; | so->so_options |= SO_NO_DDP; | ||||
toep->ulp_mode = ULP_MODE_ISCSI; | toep->params.ulp_mode = ULP_MODE_ISCSI; | ||||
toep->ulpcb = icc; | toep->ulpcb = icc; | ||||
send_iscsi_flowc_wr(icc->sc, toep, ci->max_tx_pdu_len); | send_iscsi_flowc_wr(icc->sc, toep, ci->max_tx_pdu_len); | ||||
set_ulp_mode_iscsi(icc->sc, toep, ic->ic_header_crc32c, | set_ulp_mode_iscsi(icc->sc, toep, ic->ic_header_crc32c, | ||||
ic->ic_data_crc32c); | ic->ic_data_crc32c); | ||||
error = 0; | error = 0; | ||||
} | } | ||||
INP_WUNLOCK(inp); | INP_WUNLOCK(inp); | ||||
▲ Show 20 Lines • Show All 389 Lines • Show Last 20 Lines |