Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2018 18:16:02 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338355 - head/sys/dev/cxgbe/tom
Message-ID:  <201808281816.w7SIG2km098375@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Tue Aug 28 18:16:02 2018
New Revision: 338355
URL: https://svnweb.freebsd.org/changeset/base/338355

Log:
  cxgbe/tom: Unregister shared CPL handlers on module unload.  This fixes
  a panic with INVARIANTS that occurs when t4_tom is unloaded and reloaded.
  
  Approved by:	re@ (kib@)

Modified:
  head/sys/dev/cxgbe/tom/t4_ddp.c

Modified: head/sys/dev/cxgbe/tom/t4_ddp.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_ddp.c	Tue Aug 28 17:14:46 2018	(r338354)
+++ head/sys/dev/cxgbe/tom/t4_ddp.c	Tue Aug 28 18:16:02 2018	(r338355)
@@ -1970,6 +1970,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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808281816.w7SIG2km098375>