mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
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:
parent
4d88d81c31
commit
cb27627968
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue