Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ieee8023ad_lacp.c
Show All 26 Lines | |||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include "opt_kern_tls.h" | |||||
#include "opt_ratelimit.h" | #include "opt_ratelimit.h" | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/callout.h> | #include <sys/callout.h> | ||||
#include <sys/eventhandler.h> | #include <sys/eventhandler.h> | ||||
#include <sys/mbuf.h> | #include <sys/mbuf.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
▲ Show 20 Lines • Show All 834 Lines • ▼ Show 20 Lines | #endif | ||||
lp = map[hash]; | lp = map[hash]; | ||||
KASSERT((lp->lp_state & LACP_STATE_DISTRIBUTING) != 0, | KASSERT((lp->lp_state & LACP_STATE_DISTRIBUTING) != 0, | ||||
("aggregated port is not distributing")); | ("aggregated port is not distributing")); | ||||
return (lp->lp_lagg); | return (lp->lp_lagg); | ||||
} | } | ||||
#ifdef RATELIMIT | #if defined(RATELIMIT) || defined(KERN_TLS) | ||||
struct lagg_port * | struct lagg_port * | ||||
lacp_select_tx_port_by_hash(struct lagg_softc *sc, uint32_t flowid) | lacp_select_tx_port_by_hash(struct lagg_softc *sc, uint32_t flowid) | ||||
{ | { | ||||
struct lacp_softc *lsc = LACP_SOFTC(sc); | struct lacp_softc *lsc = LACP_SOFTC(sc); | ||||
struct lacp_portmap *pm; | struct lacp_portmap *pm; | ||||
struct lacp_port *lp; | struct lacp_port *lp; | ||||
uint32_t hash; | uint32_t hash; | ||||
▲ Show 20 Lines • Show All 1,325 Lines • Show Last 20 Lines |