Date: Tue, 7 Jun 2022 10:59:29 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: cb27627968e3 - main - mlx5en(4): Set the leaf network interface field in the mbuf packet header. Message-ID: <202206071059.257AxTg3035522@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=cb27627968e34be72b6b65e4d09c1ece348ad78c commit cb27627968e34be72b6b65e4d09c1ece348ad78c Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-05-25 12:10:27 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-06-07 10:54:42 +0000 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 --- sys/dev/mlx5/mlx5_en/mlx5_en_rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c index 3c8813190f76..6d8c36299ca1 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206071059.257AxTg3035522>