From 1eb8d76bed26546baab610bdf8db03724e5e4b16 Mon Sep 17 00:00:00 2001 From: thompsa Date: Tue, 15 May 2007 07:41:46 +0000 Subject: Change from a mutex to a read/write lock. This allows the tx port to be selected simultaneously by multiple senders and transmit/receive is not serialised between aggregated interfaces. --- sys/net/ieee8023ad_lacp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/net/ieee8023ad_lacp.h') diff --git a/sys/net/ieee8023ad_lacp.h b/sys/net/ieee8023ad_lacp.h index 21ed62e..5761e3e 100644 --- a/sys/net/ieee8023ad_lacp.h +++ b/sys/net/ieee8023ad_lacp.h @@ -214,6 +214,8 @@ struct lacp_softc { struct callout lsc_callout; LIST_HEAD(, lacp_port) lsc_ports; u_int32_t lsc_hashkey; + struct task lsc_qtask; + struct ifqueue lsc_queue; /* pdu input queue */ }; #define LACP_TYPE_ACTORINFO 1 @@ -262,8 +264,7 @@ struct markerdu { #define LACP_PORT(_lp) ((struct lacp_port *)(_lp)->lp_psc) #define LACP_SOFTC(_sc) ((struct lacp_softc *)(_sc)->sc_psc) -int lacp_input(struct lagg_port *, struct mbuf *); -int lacp_marker_input(struct lagg_port *, struct mbuf *); +void lacp_input(struct lagg_port *, struct mbuf *); struct lagg_port *lacp_select_tx_port(struct lagg_softc *, struct mbuf *); int lacp_attach(struct lagg_softc *); int lacp_detach(struct lagg_softc *); -- cgit v1.1