cnic: Improve ->iscsi_nl_msg_send()
authorMichael Chan <mchan@broadcom.com>
Thu, 23 Dec 2010 07:42:58 +0000 (07:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2010 19:44:29 +0000 (11:44 -0800)
commit939b82e5bde56a98c72eccde2e3a88d32bffad4a
treee10e7ddaecef208d6fc0b11476a8943912663efc
parent8adc9240f98a816f7e9b3d93b9446a790110e062
cnic: Improve ->iscsi_nl_msg_send()

1. Change first parameter from cnic_dev to ulp_handle which is the hba
pointer.  All other similar upcalls are using hba pointer.  The callee
can then directly reference the hba without conversion.

2. Change return value from void to int so that an error code can be
passed back.  This allows the operation to be retried.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c
drivers/net/cnic_if.h
drivers/scsi/bnx2i/bnx2i_hwi.c