drivers/net/ethernet/cisco/enic/vnic_rss.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/cisco/enic/vnic_rss.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/cisco/enic/vnic_rss.h
Extension
.h
Size
616 bytes
Lines
34
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _VNIC_RSS_H_
#define _VNIC_RSS_H_

/* RSS key array */

#define ENIC_RSS_BYTES_PER_KEY	10
#define ENIC_RSS_KEYS		4
#define ENIC_RSS_LEN		(ENIC_RSS_BYTES_PER_KEY * ENIC_RSS_KEYS)

union vnic_rss_key {
	struct {
		u8 b[ENIC_RSS_BYTES_PER_KEY];
		u8 b_pad[6];
	} key[ENIC_RSS_KEYS];
	u64 raw[8];
};

/* RSS cpu array */
union vnic_rss_cpu {
	struct {
		u8 b[4] ;
		u8 b_pad[4];
	} cpu[32];
	u64 raw[32];
};

#endif /* _VNIC_RSS_H_ */

Annotation

Implementation Notes