RE: [PATCH 1/3] libcxgbi: common library for cxgb3i and cxgb4i

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Karen Xie
Date: Wednesday, August 11, 2010 - 1:19 pm

Sure, I will move the callouts for both iscsi_transport and
scsi_host_template to LLD.

Thanks,
Karen

-----Original Message-----
From: Mike Christie [mailto:michaelc@cs.wisc.edu] 
Sent: Wednesday, August 11, 2010 11:28 AM
To: open-iscsi@googlegroups.com
Cc: Karen Xie; linux-kernel@vger.kernel.org; linux-scsi@vger.kernel.org;
Rakesh Ranjan; James.Bottomley@HansenPartnership.com
Subject: Re: [PATCH 1/3] libcxgbi: common library for cxgb3i and cxgb4i

On 08/09/2010 12:53 PM, kxie@chelsio.com wrote:
CAP_HDRDGST
|
ISCSI_HOST_IPADDRESS |
iscsi_session_recovery_timedout;

Can each module just set these callouts in the low level module?
static struct scsi_host_template cxgb3i_host_template = {
         .module         = THIS_MODULE,
         .name           = DRV_MODULE_NAME,
         .proc_name      = DRV_MODULE_NAME,
         .can_queue      = CXGB3I_SCSI_HOST_QDEPTH,
	.queuecommand	= iscsi_queuecommand;
	.change_queue_depth	= iscsi_change_queue_depth;

etc...

Can you just do that for the iscsi_transport callouts too? I think it is

more standard way of doing it in scsi drivers when there is no need to 
dynamically do it.


If you build both drivers in the kernel instead of modules you get this 
error message:

drivers/scsi/cxgbi/cxgb3i/built-in.o:(.bss+0x0): multiple definition of 
`dbg_level'
drivers/scsi/cxgbi/libcxgbi.o:(.bss+0x0): first defined here
drivers/scsi/cxgbi/cxgb4i/built-in.o:(.bss+0x0): multiple definition of 
`dbg_level'
drivers/scsi/cxgbi/libcxgbi.o:(.bss+0x0): first defined here
make[3]: *** [drivers/scsi/cxgbi/built-in.o] Error 1
make[2]: *** [drivers/scsi/cxgbi] Error 2
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH 1/3] libcxgbi: common library for cxgb3i and cxgb4i, Karen Xie, (Wed Aug 11, 1:19 pm)