diff options
| author | Moni Shoua <[email protected]> | 2015-06-10 09:13:32 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2015-06-11 03:54:34 +0000 |
| commit | 9247a8eba62058dba6d018fca4e33332e4c535e8 (patch) | |
| tree | 087b61ee98fed7fe3fb7f6f6d53bfc1c6e2a62b5 /drivers/infiniband/core/multicast.c | |
| parent | IB/core: Don't advertise SA in RoCE port capabilities (diff) | |
| download | kernel-9247a8eba62058dba6d018fca4e33332e4c535e8.tar.gz kernel-9247a8eba62058dba6d018fca4e33332e4c535e8.zip | |
IB/core: Don't warn on no SA support in event handler
Registering an event handler is done for a device. This device may have
one RoCE port (no SA cap) and one InfiniBand port (has SA cap).
Therefore, warning from the event handler about a specific port that
doesn't have SA cap is correct but pollutes the kernel log without a
need.
Signed-off-by: Moni Shoua <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'drivers/infiniband/core/multicast.c')
| -rw-r--r-- | drivers/infiniband/core/multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/multicast.c b/drivers/infiniband/core/multicast.c index 605f20a9af85..1244f02a5c6d 100644 --- a/drivers/infiniband/core/multicast.c +++ b/drivers/infiniband/core/multicast.c @@ -780,7 +780,7 @@ static void mcast_event_handler(struct ib_event_handler *handler, int index; dev = container_of(handler, struct mcast_device, event_handler); - if (WARN_ON(!rdma_cap_ib_mcast(dev->device, event->element.port_num))) + if (!rdma_cap_ib_mcast(dev->device, event->element.port_num)) return; index = event->element.port_num - dev->start_port; |
