mlx5en(4): Set the leaf network interface field in the mbuf packet header.

This will be used for TLS RX.

Submitted by:	jhb@
Differential revision:	https://reviews.freebsd.org/D32356
Sponsored by:	NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2022-05-25 14:10:27 +02:00
parent 4d88d81c31
commit cb27627968

View File

@ -319,6 +319,7 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe,
M_HASHTYPE_SET(mb, M_HASHTYPE_OPAQUE);
}
mb->m_pkthdr.rcvif = ifp;
mb->m_pkthdr.leaf_rcvif = ifp;
if (cqe_is_tunneled(cqe)) {
/*
@ -598,6 +599,7 @@ mlx5e_rx_cq_comp(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe __unused)
memset(mb->m_data, 255, 14);
mb->m_data[14] = rq->ix;
mb->m_pkthdr.rcvif = rq->ifp;
mb->m_pkthdr.leaf_rcvif = rq->ifp;
rq->ifp->if_input(rq->ifp, mb);
}
#endif