The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=45d5c28439f2464dd5022abb0dd53f9da649686c

commit 45d5c28439f2464dd5022abb0dd53f9da649686c
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2021-04-12 21:36:40 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2021-04-12 21:36:40 +0000

    cxgbe: Ignore doomed virtual interfaces when updating the clip table.
    
    A doomed VI does not have a valid ifnet.
    
    Reported by:    Jithesh Arakkan @ Chelsio
    Reviewed by:    np
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D29662
---
 sys/dev/cxgbe/t4_clip.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/cxgbe/t4_clip.c b/sys/dev/cxgbe/t4_clip.c
index cc4a9b517a49..a93271103998 100644
--- a/sys/dev/cxgbe/t4_clip.c
+++ b/sys/dev/cxgbe/t4_clip.c
@@ -215,6 +215,9 @@ update_clip_table(struct adapter *sc)
        last_vnet = (uintptr_t)(-1);
        for_each_port(sc, i)
        for_each_vi(sc->port[i], j, vi) {
+               if (IS_DOOMED(vi))
+                       continue;
+
                if (last_vnet == (uintptr_t)vi->ifp->if_vnet)
                        continue;
 
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to