Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
Show First 20 Lines • Show All 313 Lines • ▼ Show 20 Lines | #ifdef M_HASHTYPE_SETINNER | ||||
if (cqe_is_tunneled(cqe)) | if (cqe_is_tunneled(cqe)) | ||||
M_HASHTYPE_SETINNER(mb); | M_HASHTYPE_SETINNER(mb); | ||||
#endif | #endif | ||||
} else { | } else { | ||||
mb->m_pkthdr.flowid = rq->ix; | mb->m_pkthdr.flowid = rq->ix; | ||||
M_HASHTYPE_SET(mb, M_HASHTYPE_OPAQUE); | M_HASHTYPE_SET(mb, M_HASHTYPE_OPAQUE); | ||||
} | } | ||||
mb->m_pkthdr.rcvif = ifp; | mb->m_pkthdr.rcvif = ifp; | ||||
mb->m_pkthdr.leaf_rcvif = ifp; | |||||
if (cqe_is_tunneled(cqe)) { | if (cqe_is_tunneled(cqe)) { | ||||
/* | /* | ||||
* CQE can be tunneled only if TIR is configured to | * CQE can be tunneled only if TIR is configured to | ||||
* enable parsing of tunneled payload, so no need to | * enable parsing of tunneled payload, so no need to | ||||
* check for capabilities. | * check for capabilities. | ||||
*/ | */ | ||||
if (((cqe->hds_ip_ext & (CQE_L2_OK | CQE_L3_OK)) == | if (((cqe->hds_ip_ext & (CQE_L2_OK | CQE_L3_OK)) == | ||||
▲ Show 20 Lines • Show All 263 Lines • ▼ Show 20 Lines | #endif | ||||
struct mbuf *mb = m_gethdr(M_NOWAIT, MT_DATA); | struct mbuf *mb = m_gethdr(M_NOWAIT, MT_DATA); | ||||
if (mb != NULL) { | if (mb != NULL) { | ||||
/* this code is used for debugging purpose only */ | /* this code is used for debugging purpose only */ | ||||
mb->m_pkthdr.len = mb->m_len = 15; | mb->m_pkthdr.len = mb->m_len = 15; | ||||
memset(mb->m_data, 255, 14); | memset(mb->m_data, 255, 14); | ||||
mb->m_data[14] = rq->ix; | mb->m_data[14] = rq->ix; | ||||
mb->m_pkthdr.rcvif = rq->ifp; | mb->m_pkthdr.rcvif = rq->ifp; | ||||
mb->m_pkthdr.leaf_rcvif = rq->ifp; | |||||
rq->ifp->if_input(rq->ifp, mb); | rq->ifp->if_input(rq->ifp, mb); | ||||
} | } | ||||
#endif | #endif | ||||
for (int j = 0; j != MLX5E_MAX_TX_NUM_TC; j++) { | for (int j = 0; j != MLX5E_MAX_TX_NUM_TC; j++) { | ||||
mtx_lock(&c->sq[j].lock); | mtx_lock(&c->sq[j].lock); | ||||
c->sq[j].db_inhibit++; | c->sq[j].db_inhibit++; | ||||
mtx_unlock(&c->sq[j].lock); | mtx_unlock(&c->sq[j].lock); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |