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