netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next FIX] RDMA/cma: Fix build breakage when infiniband is built-in
@ 2013-11-10 13:28 Or Gerlitz
  2013-11-11  2:03 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Or Gerlitz @ 2013-11-10 13:28 UTC (permalink / raw)
  To: davem; +Cc: netdev, amirv, Eyal Perry, Or Gerlitz

From: Eyal Perry <eyalpe@mellanox.com>

Commit eb072c4 ("RDMA/cma: Set IBoE SL (user-priority) by egress map when using
vlans"), broke the build when CONFIG_VLAN_8021Q=m and CONFIG_INFINIBAND=y,
because the rdma_cm module attempted to call vlan_dev_get_egress_qos_mask()
which in that case is a modular code being called from built-in kernel code.

Fix this by adding a Kconfig dependency to prevent the rdma_cm code from being
built in when 8021Q is built modular, in a similar manner we do with IPv6.

Signed-off-by: Eyal Perry <eyalpe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
---

Dave, this fixes an issue with the mentioned commit which is in net-next

 drivers/infiniband/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig
index b84791f..079dfe4 100644
--- a/drivers/infiniband/Kconfig
+++ b/drivers/infiniband/Kconfig
@@ -51,6 +51,7 @@ config INFINIBAND_ADDR_TRANS
 	bool
 	depends on INET
 	depends on !(INFINIBAND = y && IPV6 = m)
+	depends on !(INFINIBAND = y && VLAN_8021Q = m)
 	default y
 
 source "drivers/infiniband/hw/mthca/Kconfig"
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-12  8:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-10 13:28 [PATCH net-next FIX] RDMA/cma: Fix build breakage when infiniband is built-in Or Gerlitz
2013-11-11  2:03 ` David Miller
2013-11-11  5:43   ` David Miller
2013-11-12  8:14     ` Or Gerlitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).