From 29f07789b1fc26f60bc1c931437f78725f1bc994 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 14 Nov 2003 19:00:32 +0000 Subject: Drop the driver lock around calls to if_input to avoid a LOR when the packets are immediately returned for sending (e.g. when bridging or packet forwarding). There are more efficient ways to do this but for now use the least intrusive approach. Reviewed by: imp, rwatson --- sys/pci/if_rlreg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/pci/if_rlreg.h') diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h index 4d33c42..8bf6ada 100644 --- a/sys/pci/if_rlreg.h +++ b/sys/pci/if_rlreg.h @@ -692,6 +692,7 @@ struct rl_softc { #define RL_LOCK(_sc) mtx_lock(&(_sc)->rl_mtx) #define RL_UNLOCK(_sc) mtx_unlock(&(_sc)->rl_mtx) +#define RL_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->rl_mtx, MA_OWNED) /* * register space access macros -- cgit v1.1