ulp_mode
if (ulp_mode(toep) != ULP_MODE_NONE) {
toep->params.ulp_mode = ULP_MODE_ISCSI;
toep->params.ulp_mode = ULP_MODE_RDMA;
if (ulp_mode(toep) != ULP_MODE_NONE) {
toep->params.ulp_mode = ULP_MODE_NVMET;
mode = ulp_mode(toep);
("%s: ulp_mode %u for toep %p", __func__, ulp_mode(toep), toep));
if (ulp_mode(toep) == ULP_MODE_ISCSI ||
ulp_mode(toep) == ULP_MODE_NVMET)
if (ulp_mode(toep) == ULP_MODE_TCPDDP) {
if (ulp_mode(toep) == ULP_MODE_RDMA ||
(ulp_mode(toep) == ULP_MODE_ISCSI && chip_id(sc) >= CHELSIO_T6) ||
ulp_mode(toep) == ULP_MODE_NVMET) {
if (__predict_false(ulp_mode(toep) == ULP_MODE_TLS &&
KASSERT(ulp_mode(toep) == ULP_MODE_RDMA,
if (ulp_mode(toep) == ULP_MODE_TCPDDP)
if (ulp_mode(toep) == ULP_MODE_TCPDDP)
if (ulp_mode(toep) == ULP_MODE_TCPDDP) {
if (ulp_mode(toep) == ULP_MODE_TCPDDP &&
if (ulp_mode(toep) == ULP_MODE_TCPDDP)
if (ulp_mode(toep) == ULP_MODE_ISCSI ||
ulp_mode(toep) == ULP_MODE_NVMET) {
txwr->lsodisable_to_flags = htobe32(V_TX_ULP_MODE(ulp_mode(toep)) |
KASSERT(ulp_mode(toep) == ULP_MODE_NONE ||
ulp_mode(toep) == ULP_MODE_TCPDDP ||
ulp_mode(toep) == ULP_MODE_TLS ||
ulp_mode(toep) == ULP_MODE_RDMA,
("%s: ulp_mode %u for toep %p", __func__, ulp_mode(toep), toep));
if (compl || ulp_mode(toep) == ULP_MODE_RDMA) {
if (ulp_mode(toep) == ULP_MODE_ISCSI) {
toep->params.ulp_mode = ULP_MODE_TCPDDP;
if (__predict_false(ulp_mode(toep) == ULP_MODE_NONE)) {
switch (ulp_mode(toep)) {
KASSERT(resid == 0 || ulp_mode(toep) == ULP_MODE_NONE,
if (ulp_mode(toep) == ULP_MODE_NONE) {
if (ulp_mode(toep) == ULP_MODE_NONE) {
if (ulp_mode(toep) == ULP_MODE_NONE) {
if (ulp_mode(toep) == ULP_MODE_NONE) {
toep->params.ulp_mode = ULP_MODE_TLS;
if (ulp_mode(toep) != ULP_MODE_NONE)
switch (ulp_mode(toep)) {
KASSERT(ulp_mode(toep) == ULP_MODE_NONE ||
ulp_mode(toep) == ULP_MODE_TCPDDP || ulp_mode(toep) == ULP_MODE_TLS,
("%s: ulp_mode %u for toep %p", __func__, ulp_mode(toep), toep));
if (ulp_mode(toep) == ULP_MODE_TCPDDP)
MPASS(cp->ulp_mode >= 0 && cp->ulp_mode <= M_ULP_MODE);
opt0 |= V_ULP_MODE(cp->ulp_mode);
MPASS(cp->ulp_mode != ULP_MODE_TCPDDP);
cp->ulp_mode = ULP_MODE_NONE;
MPASS(ulp_mode(toep) != ULP_MODE_TCPDDP);
if (ulp_mode(toep) == ULP_MODE_TCPDDP)
if (ulp_mode(toep) == ULP_MODE_TCPDDP ||
ulp_mode(toep) == ULP_MODE_NONE) {
if (ulp_mode(toep) == ULP_MODE_TCPDDP)
if (ulp_mode(toep) == ULP_MODE_NONE && /* XXX: Read TCB otherwise? */
int8_t ulp_mode;
return (toep->params.ulp_mode);
uint32_t ulp_mode;
if (fwcmd->params.rsp.ulp[0].ulp_mode & ULP_NIC_MODE) {