Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ieee8023ad_lacp.h
Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | #define LACP_LOCK_INIT(_lsc) mtx_init(&(_lsc)->lsc_mtx, \ | ||||
"lacp mtx", NULL, MTX_DEF) | "lacp mtx", NULL, MTX_DEF) | ||||
#define LACP_LOCK_DESTROY(_lsc) mtx_destroy(&(_lsc)->lsc_mtx) | #define LACP_LOCK_DESTROY(_lsc) mtx_destroy(&(_lsc)->lsc_mtx) | ||||
#define LACP_LOCK(_lsc) mtx_lock(&(_lsc)->lsc_mtx) | #define LACP_LOCK(_lsc) mtx_lock(&(_lsc)->lsc_mtx) | ||||
#define LACP_UNLOCK(_lsc) mtx_unlock(&(_lsc)->lsc_mtx) | #define LACP_UNLOCK(_lsc) mtx_unlock(&(_lsc)->lsc_mtx) | ||||
#define LACP_LOCK_ASSERT(_lsc) mtx_assert(&(_lsc)->lsc_mtx, MA_OWNED) | #define LACP_LOCK_ASSERT(_lsc) mtx_assert(&(_lsc)->lsc_mtx, MA_OWNED) | ||||
struct mbuf *lacp_input(struct lagg_port *, struct mbuf *); | struct mbuf *lacp_input(struct lagg_port *, struct mbuf *); | ||||
struct lagg_port *lacp_select_tx_port(struct lagg_softc *, struct mbuf *); | struct lagg_port *lacp_select_tx_port(struct lagg_softc *, struct mbuf *); | ||||
#ifdef RATELIMIT | #if defined(RATELIMIT) || defined(KERN_TLS) | ||||
struct lagg_port *lacp_select_tx_port_by_hash(struct lagg_softc *, uint32_t); | struct lagg_port *lacp_select_tx_port_by_hash(struct lagg_softc *, uint32_t); | ||||
#endif | #endif | ||||
void lacp_attach(struct lagg_softc *); | void lacp_attach(struct lagg_softc *); | ||||
void lacp_detach(void *); | void lacp_detach(void *); | ||||
void lacp_init(struct lagg_softc *); | void lacp_init(struct lagg_softc *); | ||||
void lacp_stop(struct lagg_softc *); | void lacp_stop(struct lagg_softc *); | ||||
int lacp_port_create(struct lagg_port *); | int lacp_port_create(struct lagg_port *); | ||||
void lacp_port_destroy(struct lagg_port *); | void lacp_port_destroy(struct lagg_port *); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |