Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106461
b: refs/heads/master
c: 99c3a5a
h: refs/heads/master
i:
  106459: 6d42c63
v: v3
  • Loading branch information
Roland Dreier committed Jul 25, 2008
1 parent 7d057a5 commit 8abc3b9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ba18b186c979283a2bf75a28b7ea325184b0c08
refs/heads/master: 99c3a5a9e388e0ac166c617aaf02150e778d2779
10 changes: 2 additions & 8 deletions trunk/drivers/infiniband/core/ucm.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <linux/cdev.h>
#include <linux/idr.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>

#include <asm/uaccess.h>

Expand Down Expand Up @@ -1153,18 +1154,11 @@ static unsigned int ib_ucm_poll(struct file *filp,
return mask;
}

/*
* ib_ucm_open() does not need the BKL:
*
* - no global state is referred to;
* - there is no ioctl method to race against;
* - no further module initialization is required for open to work
* after the device is registered.
*/
static int ib_ucm_open(struct inode *inode, struct file *filp)
{
struct ib_ucm_file *file;

cycle_kernel_lock();
file = kmalloc(sizeof(*file), GFP_KERNEL);
if (!file)
return -ENOMEM;
Expand Down
11 changes: 3 additions & 8 deletions trunk/drivers/infiniband/core/ucma.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/miscdevice.h>
#include <linux/smp_lock.h>

#include <rdma/rdma_user_cm.h>
#include <rdma/ib_marshall.h>
Expand Down Expand Up @@ -1148,14 +1149,6 @@ static unsigned int ucma_poll(struct file *filp, struct poll_table_struct *wait)
return mask;
}

/*
* ucma_open() does not need the BKL:
*
* - no global state is referred to;
* - there is no ioctl method to race against;
* - no further module initialization is required for open to work
* after the device is registered.
*/
static int ucma_open(struct inode *inode, struct file *filp)
{
struct ucma_file *file;
Expand All @@ -1164,13 +1157,15 @@ static int ucma_open(struct inode *inode, struct file *filp)
if (!file)
return -ENOMEM;

lock_kernel();
INIT_LIST_HEAD(&file->event_list);
INIT_LIST_HEAD(&file->ctx_list);
init_waitqueue_head(&file->poll_wait);
mutex_init(&file->mut);

filp->private_data = file;
file->filp = filp;
unlock_kernel();
return 0;
}

Expand Down
15 changes: 8 additions & 7 deletions trunk/drivers/infiniband/ulp/ipoib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ config INFINIBAND_IPOIB

config INFINIBAND_IPOIB_CM
bool "IP-over-InfiniBand Connected Mode support"
depends on INFINIBAND_IPOIB && EXPERIMENTAL
depends on INFINIBAND_IPOIB
default n
---help---
This option enables experimental support for IPoIB connected mode.
After enabling this option, you need to switch to connected mode through
/sys/class/net/ibXXX/mode to actually create connections, and then increase
the interface MTU with e.g. ifconfig ib0 mtu 65520.
This option enables support for IPoIB connected mode. After
enabling this option, you need to switch to connected mode
through /sys/class/net/ibXXX/mode to actually create
connections, and then increase the interface MTU with
e.g. ifconfig ib0 mtu 65520.

WARNING: Enabling connected mode will trigger some
packet drops for multicast and UD mode traffic from this interface,
WARNING: Enabling connected mode will trigger some packet
drops for multicast and UD mode traffic from this interface,
unless you limit mtu for these destinations to 2044.

config INFINIBAND_IPOIB_DEBUG
Expand Down

0 comments on commit 8abc3b9

Please sign in to comment.