Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / net / ethernet / cisco / enic / vnic_rss.h
blob4dcf0e61cb139823b7c99506de5611cf9f0769c4
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 */
7 #ifndef _VNIC_RSS_H_
8 #define _VNIC_RSS_H_
10 /* RSS key array */
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)
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];
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];
33 #endif /* _VNIC_RSS_H_ */