linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iscsi: add module alias
@ 2010-12-09 17:37 Stephen Hemminger
  2010-12-09 21:37 ` Mike Christie
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2010-12-09 17:37 UTC (permalink / raw)
  To: Mike Christie, James E.J. Bottomley; +Cc: open-iscsi, linux-scsi

Since iscsi transport can be built as a module and uses netlink socket
to communicate. The module should have an alias to autoload when socket
of NETLINK_ISCSI type is requested.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--- a/drivers/scsi/scsi_transport_iscsi.c	2010-12-09 09:21:42.784962783 -0800
+++ b/drivers/scsi/scsi_transport_iscsi.c	2010-12-09 09:22:40.812352712 -0800
@@ -2200,3 +2200,4 @@ MODULE_AUTHOR("Mike Christie <michaelc@c
 MODULE_DESCRIPTION("iSCSI Transport Interface");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(ISCSI_TRANSPORT_VERSION);
+MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_ISCSI);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] iscsi: add module alias
  2010-12-09 17:37 [PATCH] iscsi: add module alias Stephen Hemminger
@ 2010-12-09 21:37 ` Mike Christie
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Christie @ 2010-12-09 21:37 UTC (permalink / raw)
  To: open-iscsi; +Cc: Stephen Hemminger, James E.J. Bottomley, linux-scsi

On 12/09/2010 11:37 AM, Stephen Hemminger wrote:
> Since iscsi transport can be built as a module and uses netlink socket
> to communicate. The module should have an alias to autoload when socket
> of NETLINK_ISCSI type is requested.
>
> Signed-off-by: Stephen Hemminger<shemminger@vyatta.com>
>
> --- a/drivers/scsi/scsi_transport_iscsi.c	2010-12-09 09:21:42.784962783 -0800
> +++ b/drivers/scsi/scsi_transport_iscsi.c	2010-12-09 09:22:40.812352712 -0800
> @@ -2200,3 +2200,4 @@ MODULE_AUTHOR("Mike Christie<michaelc@c
>   MODULE_DESCRIPTION("iSCSI Transport Interface");
>   MODULE_LICENSE("GPL");
>   MODULE_VERSION(ISCSI_TRANSPORT_VERSION);
> +MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_ISCSI);
>

Thanks for the patch. Looks ok to me.

Acked-by: Mike Christie <michaelc@cs.wisc.edu>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-09 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 17:37 [PATCH] iscsi: add module alias Stephen Hemminger
2010-12-09 21:37 ` Mike Christie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).