git: 6472761966f7 - main - IfAPI: use IfAPI in mbuf
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Feb 2023 17:53:54 UTC
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=6472761966f78b364b370d61f452fedde0d19c8c commit 6472761966f78b364b370d61f452fedde0d19c8c Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2023-02-01 15:26:20 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2023-02-06 17:32:04 +0000 IfAPI: use IfAPI in mbuf Sponsored by: Juniper Networks, Inc. --- sys/kern/kern_mbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index 84dea05f1bbb..2e1419aaa2ef 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -1642,7 +1642,7 @@ m_rcvif_restore(struct mbuf *m) NET_EPOCH_ASSERT(); ifp = ifnet_byindexgen(m->m_pkthdr.rcvidx, m->m_pkthdr.rcvgen); - if (ifp == NULL || (ifp->if_flags & IFF_DYING)) + if (ifp == NULL || (if_getflags(ifp) & IFF_DYING)) return (NULL); if (__predict_true(m->m_pkthdr.leaf_rcvidx == (u_short)-1)) { @@ -1650,7 +1650,7 @@ m_rcvif_restore(struct mbuf *m) } else { leaf_ifp = ifnet_byindexgen(m->m_pkthdr.leaf_rcvidx, m->m_pkthdr.leaf_rcvgen); - if (__predict_false(leaf_ifp != NULL && (leaf_ifp->if_flags & IFF_DYING))) + if (__predict_false(leaf_ifp != NULL && (if_getflags(leaf_ifp) & IFF_DYING))) leaf_ifp = NULL; }