Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/rss_config.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* The default direction (INGRESS) is the "receive into the NIC" - ie, | * The default direction (INGRESS) is the "receive into the NIC" - ie, | ||||
* what the hardware is hashing on. | * what the hardware is hashing on. | ||||
*/ | */ | ||||
#define RSS_HASH_PKT_INGRESS 0 | #define RSS_HASH_PKT_INGRESS 0 | ||||
#define RSS_HASH_PKT_EGRESS 1 | #define RSS_HASH_PKT_EGRESS 1 | ||||
/* | /* | ||||
* Rate limited debugging routines. | |||||
*/ | |||||
#define RSS_DEBUG(format, ...) do { \ | |||||
if (rss_debug) { \ | |||||
static struct timeval lastfail; \ | |||||
static int curfail; \ | |||||
if (ppsratecheck(&lastfail, &curfail, 5)) \ | |||||
printf("RSS (%s:%u): " format, __func__, __LINE__,\ | |||||
##__VA_ARGS__); \ | |||||
} \ | |||||
} while (0) | |||||
extern int rss_debug; | |||||
/* | |||||
* Device driver interfaces to query RSS properties that must be programmed | * Device driver interfaces to query RSS properties that must be programmed | ||||
* into hardware. | * into hardware. | ||||
*/ | */ | ||||
u_int rss_getbits(void); | u_int rss_getbits(void); | ||||
u_int rss_getbucket(u_int hash); | u_int rss_getbucket(u_int hash); | ||||
u_int rss_get_indirection_to_bucket(u_int index); | u_int rss_get_indirection_to_bucket(u_int index); | ||||
u_int rss_getcpu(u_int bucket); | u_int rss_getcpu(u_int bucket); | ||||
void rss_getkey(uint8_t *key); | void rss_getkey(uint8_t *key); | ||||
Show All 20 Lines |