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

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 07 Jun 2022 10:59:29 UTC
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