diff options
author | Robert Love <robert.w.love@intel.com> | 2009-03-17 14:41:30 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-03 10:22:57 -0400 |
commit | 38eccabd1067b93af0fedbf447ab846e7df1ca66 (patch) | |
tree | 10f648d5b4cb1fc3754ec048da53be68117d467a /include/scsi | |
parent | 2df71b1a5bea7955872dbab5cf89183da697d0f9 (diff) |
[SCSI] fcoe: Initialize all possilbe skb_queue(s) when module is loaded
Currently the skb_queue is initialized every time the associated
CPU goes online. This patch has libfcoe initializing the skb_queue
for all possible CPUs when the module is loaded.
This patch also re-orders some declarations in the fcoe_rcv()
function so the structure declarations are grouped before
the primitive declarations.
Lastly, this patch converts all CPU indicies to use unsigned int
since CPU indicies should not be negative.
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libfcoe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index c41f7d0c6efc..124dc5bd9f87 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h | |||
@@ -29,7 +29,7 @@ | |||
29 | * this percpu struct for fcoe | 29 | * this percpu struct for fcoe |
30 | */ | 30 | */ |
31 | struct fcoe_percpu_s { | 31 | struct fcoe_percpu_s { |
32 | int cpu; | 32 | unsigned int cpu; |
33 | struct task_struct *thread; | 33 | struct task_struct *thread; |
34 | struct sk_buff_head fcoe_rx_list; | 34 | struct sk_buff_head fcoe_rx_list; |
35 | struct page *crc_eof_page; | 35 | struct page *crc_eof_page; |