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/dev/an/if_anreg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/an/if_anreg.h') diff --git a/sys/dev/an/if_anreg.h b/sys/dev/an/if_anreg.h index 86b5efa..6ed2bf9 100644 --- a/sys/dev/an/if_anreg.h +++ b/sys/dev/an/if_anreg.h @@ -502,6 +502,7 @@ struct an_softc { #define AN_LOCK(_sc) mtx_lock(&(_sc)->an_mtx) #define AN_UNLOCK(_sc) mtx_unlock(&(_sc)->an_mtx) +#define AN_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->an_mtx, MA_OWNED) void an_release_resources (device_t); int an_alloc_port (device_t, int, int); -- cgit v1.1