Author: np
Date: Mon Apr 29 19:15:50 2019
New Revision: 346913
URL: https://svnweb.freebsd.org/changeset/base/346913

Log:
  MFC r338355:
  
  cxgbe/tom: Unregister shared CPL handlers on module unload.  This fixes
  a panic with INVARIANTS that occurs when t4_tom is unloaded and reloaded.

Modified:
  stable/11/sys/dev/cxgbe/tom/t4_ddp.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/cxgbe/tom/t4_ddp.c
==============================================================================
--- stable/11/sys/dev/cxgbe/tom/t4_ddp.c        Mon Apr 29 19:12:47 2019        
(r346912)
+++ stable/11/sys/dev/cxgbe/tom/t4_ddp.c        Mon Apr 29 19:15:50 2019        
(r346913)
@@ -1975,6 +1975,8 @@ t4_ddp_mod_unload(void)
        taskqueue_drain(taskqueue_thread, &ddp_orphan_task);
        MPASS(TAILQ_EMPTY(&ddp_orphan_pagesets));
        mtx_destroy(&ddp_orphan_pagesets_lock);
+       t4_register_shared_cpl_handler(CPL_SET_TCB_RPL, NULL, CPL_COOKIE_DDP0);
+       t4_register_shared_cpl_handler(CPL_SET_TCB_RPL, NULL, CPL_COOKIE_DDP1);
        t4_register_cpl_handler(CPL_RX_DATA_DDP, NULL);
        t4_register_cpl_handler(CPL_RX_DDP_COMPLETE, NULL);
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to