Scott Feldman | 01f2e4e | 2008-09-15 09:17:11 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2008 Cisco Systems, Inc. All rights reserved. |
| 3 | * Copyright 2007 Nuova Systems, Inc. All rights reserved. |
Scott Feldman | 21fc578 | 2008-11-21 21:29:25 -0800 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you may redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; version 2 of the License. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 10 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 11 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 12 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 13 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 14 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 15 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 16 | * SOFTWARE. |
Scott Feldman | 01f2e4e | 2008-09-15 09:17:11 -0700 | [diff] [blame] | 17 | */ |
| 18 | |
| 19 | #ifndef _VNIC_RSS_H_ |
| 20 | #define _VNIC_RSS_H_ |
| 21 | |
| 22 | /* RSS key array */ |
| 23 | union vnic_rss_key { |
| 24 | struct { |
| 25 | u8 b[10]; |
| 26 | u8 b_pad[6]; |
| 27 | } key[4]; |
| 28 | u64 raw[8]; |
| 29 | }; |
| 30 | |
| 31 | /* RSS cpu array */ |
| 32 | union vnic_rss_cpu { |
| 33 | struct { |
| 34 | u8 b[4] ; |
| 35 | u8 b_pad[4]; |
| 36 | } cpu[32]; |
| 37 | u64 raw[32]; |
| 38 | }; |
| 39 | |
| 40 | void vnic_set_rss_key(union vnic_rss_key *rss_key, u8 *key); |
| 41 | void vnic_set_rss_cpu(union vnic_rss_cpu *rss_cpu, u8 *cpu); |
| 42 | void vnic_get_rss_key(union vnic_rss_key *rss_key, u8 *key); |
| 43 | void vnic_get_rss_cpu(union vnic_rss_cpu *rss_cpu, u8 *cpu); |
| 44 | |
| 45 | #endif /* _VNIC_RSS_H_ */ |