1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright 2008-2010 Cisco Systems, Inc.  All rights reserved.
4  * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
5  */
6 
7 #ifndef _VNIC_RSS_H_
8 #define _VNIC_RSS_H_
9 
10 /* RSS key array */
11 
12 #define ENIC_RSS_BYTES_PER_KEY	10
13 #define ENIC_RSS_KEYS		4
14 #define ENIC_RSS_LEN		(ENIC_RSS_BYTES_PER_KEY * ENIC_RSS_KEYS)
15 
16 union vnic_rss_key {
17 	struct {
18 		u8 b[ENIC_RSS_BYTES_PER_KEY];
19 		u8 b_pad[6];
20 	} key[ENIC_RSS_KEYS];
21 	u64 raw[8];
22 };
23 
24 /* RSS cpu array */
25 union vnic_rss_cpu {
26 	struct {
27 		u8 b[4] ;
28 		u8 b_pad[4];
29 	} cpu[32];
30 	u64 raw[32];
31 };
32 
33 #endif /* _VNIC_RSS_H_ */
34