Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if_lagg.h
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | |||||
#define LAGG_OPT_USE_FLOWID 0x01 /* enable use of flowid */ | #define LAGG_OPT_USE_FLOWID 0x01 /* enable use of flowid */ | ||||
/* 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_FAST_TIMO 0x80 /* LACP fast timeout */ | ||||
#define LAGG_OPT_RR_LIMIT 0x100 /* RR stride */ | #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) | ||||
#define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts) | #define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts) | ||||
#define LAGG_OPT_BITS "\020\001USE_FLOWID\003USE_NUMA" \ | #define LAGG_OPT_BITS "\020\001USE_FLOWID\003USE_NUMA" \ | ||||
"\005LACP_STRICT\006LACP_TXTEST" \ | "\005LACP_STRICT\006LACP_TXTEST" \ | ||||
"\007LACP_RXTEST" | "\007LACP_RXTEST\010LACP_FAST_TIMO" | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* | /* | ||||
* Internal kernel part | * Internal kernel part | ||||
*/ | */ | ||||
#define LAGG_PORTACTIVE(_tp) ( \ | #define LAGG_PORTACTIVE(_tp) ( \ | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |