Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.h
Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct ifi2creq { | struct ifi2creq { | ||||
uint8_t dev_addr; /* i2c address (0xA0, 0xA2) */ | uint8_t dev_addr; /* i2c address (0xA0, 0xA2) */ | ||||
uint8_t offset; /* read offset */ | uint8_t offset; /* read offset */ | ||||
uint8_t len; /* read length */ | uint8_t len; /* read length */ | ||||
uint8_t spare0; | uint8_t spare0; | ||||
uint32_t spare1; | uint32_t spare1; | ||||
uint8_t data[8]; /* read buffer */ | uint8_t data[8]; /* read buffer */ | ||||
}; | }; | ||||
/* | /* | ||||
* RSS hash. | * RSS hash. | ||||
*/ | */ | ||||
#define RSS_FUNC_NONE 0 /* RSS disabled */ | #define RSS_FUNC_NONE 0 /* RSS disabled */ | ||||
#define RSS_FUNC_PRIVATE 1 /* non-standard */ | #define RSS_FUNC_PRIVATE 1 /* non-standard */ | ||||
#define RSS_FUNC_TOEPLITZ 2 | #define RSS_FUNC_TOEPLITZ 2 | ||||
Show All 23 Lines | struct ifrsshash { | ||||
uint8_t ifrh_func; /* RSS_FUNC_ */ | uint8_t ifrh_func; /* RSS_FUNC_ */ | ||||
uint8_t ifrh_spare0; | uint8_t ifrh_spare0; | ||||
uint16_t ifrh_spare1; | uint16_t ifrh_spare1; | ||||
uint32_t ifrh_types; /* RSS_TYPE_ */ | uint32_t ifrh_types; /* RSS_TYPE_ */ | ||||
}; | }; | ||||
#define IFNET_PCP_NONE 0xff /* PCP disabled */ | #define IFNET_PCP_NONE 0xff /* PCP disabled */ | ||||
/* | |||||
* Structures used to request VF status data from an interface | |||||
*/ | |||||
struct ifvfstatus_entry { | |||||
uint8_t mac_addr[6]; | |||||
int16_t vlan; | |||||
uint8_t active; | |||||
uint8_t spare0; | |||||
marius: Some spares probably would be a good idea and yield better alignment. | |||||
Not Done Inline ActionsThen what should I do here? How much space space would be good? Something like another 8 or 16 bytes for spares? erj: Then what should I do here? How much space space would be good? Something like another 8 or 16… | |||||
Not Done Inline ActionsYes, using 128 bytes in total looks good to me. marius: Yes, using 128 bytes in total looks good to me. | |||||
uint16_t spare1; | |||||
uint32_t spare2; | |||||
}; | |||||
struct ifvfstatus { | |||||
char ifvfs_name[IFNAMSIZ]; | |||||
int ifvfs_count; | |||||
struct ifvfstatus_entry *ifvfs_list; | |||||
}; | |||||
#endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#ifdef MALLOC_DECLARE | #ifdef MALLOC_DECLARE | ||||
MALLOC_DECLARE(M_IFADDR); | MALLOC_DECLARE(M_IFADDR); | ||||
MALLOC_DECLARE(M_IFMADDR); | MALLOC_DECLARE(M_IFMADDR); | ||||
#endif | #endif | ||||
#endif | #endif | ||||
Show All 15 Lines |
Some spares probably would be a good idea and yield better alignment.