18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig INFINIBAND_IPOIB
38c2ecf20Sopenharmony_ci	tristate "IP-over-InfiniBand"
48c2ecf20Sopenharmony_ci	depends on NETDEVICES && INET && (IPV6 || IPV6=n)
58c2ecf20Sopenharmony_ci	help
68c2ecf20Sopenharmony_ci	  Support for the IP-over-InfiniBand protocol (IPoIB). This
78c2ecf20Sopenharmony_ci	  transports IP packets over InfiniBand so you can use your IB
88c2ecf20Sopenharmony_ci	  device as a fancy NIC.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci	  See Documentation/infiniband/ipoib.rst for more information
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciconfig INFINIBAND_IPOIB_CM
138c2ecf20Sopenharmony_ci	bool "IP-over-InfiniBand Connected Mode support"
148c2ecf20Sopenharmony_ci	depends on INFINIBAND_IPOIB
158c2ecf20Sopenharmony_ci	default n
168c2ecf20Sopenharmony_ci	help
178c2ecf20Sopenharmony_ci	  This option enables support for IPoIB connected mode.  After
188c2ecf20Sopenharmony_ci	  enabling this option, you need to switch to connected mode
198c2ecf20Sopenharmony_ci	  through /sys/class/net/ibXXX/mode to actually create
208c2ecf20Sopenharmony_ci	  connections, and then increase the interface MTU with
218c2ecf20Sopenharmony_ci	  e.g. ifconfig ib0 mtu 65520.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci	  WARNING: Enabling connected mode will trigger some packet
248c2ecf20Sopenharmony_ci	  drops for multicast and UD mode traffic from this interface,
258c2ecf20Sopenharmony_ci	  unless you limit mtu for these destinations to 2044.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciconfig INFINIBAND_IPOIB_DEBUG
288c2ecf20Sopenharmony_ci	bool "IP-over-InfiniBand debugging" if EXPERT
298c2ecf20Sopenharmony_ci	depends on INFINIBAND_IPOIB
308c2ecf20Sopenharmony_ci	default y
318c2ecf20Sopenharmony_ci	help
328c2ecf20Sopenharmony_ci	  This option causes debugging code to be compiled into the
338c2ecf20Sopenharmony_ci	  IPoIB driver.  The output can be turned on via the
348c2ecf20Sopenharmony_ci	  debug_level and mcast_debug_level module parameters (which
358c2ecf20Sopenharmony_ci	  can also be set after the driver is loaded through sysfs).
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci	  This option also creates a directory tree under ipoib/ in
388c2ecf20Sopenharmony_ci	  debugfs, which contains files that expose debugging
398c2ecf20Sopenharmony_ci	  information about IB multicast groups used by the IPoIB
408c2ecf20Sopenharmony_ci	  driver.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciconfig INFINIBAND_IPOIB_DEBUG_DATA
438c2ecf20Sopenharmony_ci	bool "IP-over-InfiniBand data path debugging"
448c2ecf20Sopenharmony_ci	depends on INFINIBAND_IPOIB_DEBUG
458c2ecf20Sopenharmony_ci	help
468c2ecf20Sopenharmony_ci	  This option compiles debugging code into the data path
478c2ecf20Sopenharmony_ci	  of the IPoIB driver.  The output can be turned on via the
488c2ecf20Sopenharmony_ci	  data_debug_level module parameter; however, even with output
498c2ecf20Sopenharmony_ci	  turned off, this debugging code will have some performance
508c2ecf20Sopenharmony_ci	  impact.
51