Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2008-2010 Cisco Systems, Inc.  All rights reserved.
0004  * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
0005  */
0006 
0007 #ifndef _VNIC_RSS_H_
0008 #define _VNIC_RSS_H_
0009 
0010 /* RSS key array */
0011 
0012 #define ENIC_RSS_BYTES_PER_KEY  10
0013 #define ENIC_RSS_KEYS       4
0014 #define ENIC_RSS_LEN        (ENIC_RSS_BYTES_PER_KEY * ENIC_RSS_KEYS)
0015 
0016 union vnic_rss_key {
0017     struct {
0018         u8 b[ENIC_RSS_BYTES_PER_KEY];
0019         u8 b_pad[6];
0020     } key[ENIC_RSS_KEYS];
0021     u64 raw[8];
0022 };
0023 
0024 /* RSS cpu array */
0025 union vnic_rss_cpu {
0026     struct {
0027         u8 b[4] ;
0028         u8 b_pad[4];
0029     } cpu[32];
0030     u64 raw[32];
0031 };
0032 
0033 #endif /* _VNIC_RSS_H_ */