Skip to content

Commit

Permalink
cnic: Return proper error code if we fail to send netlink message
Browse files Browse the repository at this point in the history
to allow iSCSI connection to fail faster instead of waiting for the
long timeout.

Update version to 2.5.6.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Jul 14, 2011
1 parent e1dd883 commit 558e4c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ static int cnic_send_nlmsg(struct cnic_local *cp, u32 type,
msleep(100);
retry++;
}
return 0;
return rc;
}

static void cnic_cm_upcall(struct cnic_local *, struct cnic_sock *, u8);
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/cnic_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#ifndef CNIC_IF_H
#define CNIC_IF_H

#define CNIC_MODULE_VERSION "2.5.3"
#define CNIC_MODULE_RELDATE "June 6, 2011"
#define CNIC_MODULE_VERSION "2.5.6"
#define CNIC_MODULE_RELDATE "July 12, 2011"

#define CNIC_ULP_RDMA 0
#define CNIC_ULP_ISCSI 1
Expand Down

0 comments on commit 558e4c7

Please sign in to comment.