Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if_lagg.h
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
#define LAGG_OPT_LACP_STRICT 0x10 /* LACP strict mode */ | #define LAGG_OPT_LACP_STRICT 0x10 /* LACP strict mode */ | ||||
#define LAGG_OPT_LACP_TXTEST 0x20 /* LACP debug: txtest */ | #define LAGG_OPT_LACP_TXTEST 0x20 /* LACP debug: txtest */ | ||||
#define LAGG_OPT_LACP_RXTEST 0x40 /* LACP debug: rxtest */ | #define LAGG_OPT_LACP_RXTEST 0x40 /* LACP debug: rxtest */ | ||||
#define LAGG_OPT_LACP_TIMEOUT 0x80 /* LACP timeout */ | #define LAGG_OPT_LACP_TIMEOUT 0x80 /* LACP timeout */ | ||||
u_int ro_count; /* number of ports */ | u_int ro_count; /* number of ports */ | ||||
u_int ro_active; /* active port count */ | u_int ro_active; /* active port count */ | ||||
u_int ro_flapping; /* number of flapping */ | u_int ro_flapping; /* number of flapping */ | ||||
int ro_flowid_shift; /* shift the flowid */ | int ro_flowid_shift; /* shift the flowid */ | ||||
uint32_t ro_bkt; /* packet bucket for roundrobin */ | |||||
}; | }; | ||||
#define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts) | #define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts) | ||||
#define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts) | #define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts) | ||||
#define LAGG_OPT_BITS "\020\001USE_FLOWID\005LACP_STRICT" \ | #define LAGG_OPT_BITS "\020\001USE_FLOWID\005LACP_STRICT" \ | ||||
"\006LACP_TXTEST\007LACP_RXTEST" | "\006LACP_TXTEST\007LACP_RXTEST" | ||||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | struct lagg_softc { | ||||
struct task sc_lladdr_task; | struct task sc_lladdr_task; | ||||
SLIST_HEAD(__llqhd, lagg_llq) sc_llq_head; /* interfaces to program | SLIST_HEAD(__llqhd, lagg_llq) sc_llq_head; /* interfaces to program | ||||
the lladdr on */ | the lladdr on */ | ||||
eventhandler_tag vlan_attach; | eventhandler_tag vlan_attach; | ||||
eventhandler_tag vlan_detach; | eventhandler_tag vlan_detach; | ||||
struct callout sc_callout; | struct callout sc_callout; | ||||
u_int sc_opts; | u_int sc_opts; | ||||
int flowid_shift; /* shift the flowid */ | int flowid_shift; /* shift the flowid */ | ||||
uint32_t sc_bkt; /* packates bucket for roundrobin */ | |||||
uint32_t sc_bkt_count; /* packates bucket count for roundrobin */ | |||||
struct lagg_counters detached_counters; /* detached ports sum */ | struct lagg_counters detached_counters; /* detached ports sum */ | ||||
}; | }; | ||||
struct lagg_port { | struct lagg_port { | ||||
struct ifnet *lp_ifp; /* physical interface */ | struct ifnet *lp_ifp; /* physical interface */ | ||||
struct lagg_softc *lp_softc; /* parent lagg */ | struct lagg_softc *lp_softc; /* parent lagg */ | ||||
uint8_t lp_lladdr[ETHER_ADDR_LEN]; | uint8_t lp_lladdr[ETHER_ADDR_LEN]; | ||||
Show All 39 Lines |