Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if_lagg.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
struct lagg_protos { | struct lagg_protos { | ||||
const char *lpr_name; | const char *lpr_name; | ||||
lagg_proto lpr_proto; | lagg_proto lpr_proto; | ||||
}; | }; | ||||
#define LAGG_PROTO_DEFAULT LAGG_PROTO_FAILOVER | #define LAGG_PROTO_DEFAULT LAGG_PROTO_FAILOVER | ||||
#define LAGG_PROTOS { \ | #define LAGG_PROTOS { \ | ||||
{ "failover", LAGG_PROTO_FAILOVER }, \ | { "failover", LAGG_PROTO_FAILOVER }, \ | ||||
{ "lacp", LAGG_PROTO_LACP }, \ | { "lacp", LAGG_PROTO_LACP }, \ | ||||
{ "loadbalance", LAGG_PROTO_LOADBALANCE }, \ | { "loadbalance", LAGG_PROTO_LOADBALANCE }, \ | ||||
{ "roundrobin", LAGG_PROTO_ROUNDROBIN }, \ | { "roundrobin", LAGG_PROTO_ROUNDROBIN }, \ | ||||
{ "broadcast", LAGG_PROTO_BROADCAST }, \ | { "broadcast", LAGG_PROTO_BROADCAST }, \ | ||||
{ "none", LAGG_PROTO_NONE }, \ | { "none", LAGG_PROTO_NONE }, \ | ||||
{ "default", LAGG_PROTO_DEFAULT } \ | { "default", LAGG_PROTO_DEFAULT } \ | ||||
} | } | ||||
/* | /* | ||||
* lagg ioctls. | * lagg ioctls. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
/* Pseudo flags which are used in ro_opts but not stored into sc_opts. */ | /* Pseudo flags which are used in ro_opts but not stored into sc_opts. */ | ||||
#define LAGG_OPT_FLOWIDSHIFT 0x02 /* set flowid shift */ | #define LAGG_OPT_FLOWIDSHIFT 0x02 /* set flowid shift */ | ||||
#define LAGG_OPT_USE_NUMA 0x04 /* enable use of numa */ | #define LAGG_OPT_USE_NUMA 0x04 /* enable use of numa */ | ||||
#define LAGG_OPT_FLOWIDSHIFT_MASK 0x1f /* flowid is uint32_t */ | #define LAGG_OPT_FLOWIDSHIFT_MASK 0x1f /* flowid is uint32_t */ | ||||
#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 */ | ||||
#define LAGG_OPT_RR_LIMIT 0x100 /* RR stride */ | |||||
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; /* stride for RR */ | uint32_t ro_bkt; /* stride for RR */ | ||||
}; | }; | ||||
#define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts) | #define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts) | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |