]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/core: Make ib_addr a core IB module
authorMatan Barak <matanb@mellanox.com>
Thu, 16 Jan 2014 15:16:47 +0000 (17:16 +0200)
committerRoland Dreier <roland@purestorage.com>
Sun, 19 Jan 2014 23:14:04 +0000 (15:14 -0800)
IP based addressing introduces the usage of rdma_addr_find_dmac_by_grh()
within ib_core.  Since this function is declared in ib_addr, ib_addr
should be a part of the core INFINIBAND modules, rather than
INFINIBAND_ADDR_TRANS.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/Kconfig
drivers/infiniband/core/Makefile

index 5ceda710f516bc4721e14961a504fa7e2c3054a9..3c101a07f17c985ed792c303d916fc918e61d4fb 100644 (file)
@@ -3,6 +3,8 @@ menuconfig INFINIBAND
        depends on PCI || BROKEN
        depends on HAS_IOMEM
        depends on NET
+       depends on INET
+       depends on m || IPV6 != m
        ---help---
          Core support for InfiniBand (IB).  Make sure to also select
          any protocols you wish to use as well as drivers for your
@@ -38,8 +40,7 @@ config INFINIBAND_USER_MEM
 
 config INFINIBAND_ADDR_TRANS
        bool
-       depends on INET
-       depends on !(INFINIBAND = y && IPV6 = m)
+       depends on INFINIBAND
        default y
 
 source "drivers/infiniband/hw/mthca/Kconfig"
index c8bbaef1becb1588c8051c214db9c378b39c37c3..3ab3865544bb33eeac18659e4c19b2f1a41c7e76 100644 (file)
@@ -1,8 +1,9 @@
-infiniband-$(CONFIG_INFINIBAND_ADDR_TRANS)     := ib_addr.o rdma_cm.o
+infiniband-$(CONFIG_INFINIBAND_ADDR_TRANS)     := rdma_cm.o
 user_access-$(CONFIG_INFINIBAND_ADDR_TRANS)    := rdma_ucm.o
 
 obj-$(CONFIG_INFINIBAND) +=            ib_core.o ib_mad.o ib_sa.o \
-                                       ib_cm.o iw_cm.o $(infiniband-y)
+                                       ib_cm.o iw_cm.o ib_addr.o \
+                                       $(infiniband-y)
 obj-$(CONFIG_INFINIBAND_USER_MAD) +=   ib_umad.o
 obj-$(CONFIG_INFINIBAND_USER_ACCESS) +=        ib_uverbs.o ib_ucm.o \
                                        $(user_access-y)