]> git.karo-electronics.de Git - linux-beck.git/commitdiff
IB/usnic: Append documentation to usnic_transport.h and cleanup
authorUpinder Malhi <umalhi@cisco.com>
Fri, 20 Dec 2013 21:41:23 +0000 (21:41 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 14 Jan 2014 08:51:00 +0000 (00:51 -0800)
Add comment describing usnic_transport_rsrv port and remove
extraneous space from usnic_transport.c.

Signed-off-by: Upinder Malhi <umalhi@cisco.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/usnic/usnic_transport.c
drivers/infiniband/hw/usnic/usnic_transport.h

index 73dffc9c535a9f1c80a57a312941961352abf8ce..9182cc8f8b93c35b452b2a918ced9b7f8d905c8c 100644 (file)
@@ -184,7 +184,6 @@ int usnic_transport_sock_get_addr(struct socket *sock, int *proto,
        return 0;
 }
 
-
 int usnic_transport_init(void)
 {
        roce_bitmap = kzalloc(ROCE_BITMAP_SZ, GFP_KERNEL);
index 21371bb86c714c65ab63e44a10de3e79a1c162a4..7e5dc6d9f462d68ecc3a99a7ef997e74d4e2b626 100644 (file)
@@ -28,6 +28,10 @@ const char *usnic_transport_to_str(enum usnic_transport_type trans_type);
  */
 int usnic_transport_sock_to_str(char *buf, int buf_sz,
                                        struct socket *sock);
+/*
+ * Reserve a port. If "port_num" is set, then the function will try
+ * to reserve that particular port.
+ */
 u16 usnic_transport_rsrv_port(enum usnic_transport_type type, u16 port_num);
 void usnic_transport_unrsrv_port(enum usnic_transport_type type, u16 port_num);
 /*