^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config INFINIBAND_IPOIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) tristate "IP-over-InfiniBand"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) depends on NETDEVICES && INET && (IPV6 || IPV6=n)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Support for the IP-over-InfiniBand protocol (IPoIB). This
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) transports IP packets over InfiniBand so you can use your IB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) device as a fancy NIC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) See Documentation/infiniband/ipoib.rst for more information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) config INFINIBAND_IPOIB_CM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) bool "IP-over-InfiniBand Connected Mode support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) depends on INFINIBAND_IPOIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) This option enables support for IPoIB connected mode. After
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) enabling this option, you need to switch to connected mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) through /sys/class/net/ibXXX/mode to actually create
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) connections, and then increase the interface MTU with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) e.g. ifconfig ib0 mtu 65520.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) WARNING: Enabling connected mode will trigger some packet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) drops for multicast and UD mode traffic from this interface,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) unless you limit mtu for these destinations to 2044.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) config INFINIBAND_IPOIB_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) bool "IP-over-InfiniBand debugging" if EXPERT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) depends on INFINIBAND_IPOIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) This option causes debugging code to be compiled into the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) IPoIB driver. The output can be turned on via the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) debug_level and mcast_debug_level module parameters (which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) can also be set after the driver is loaded through sysfs).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) This option also creates a directory tree under ipoib/ in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) debugfs, which contains files that expose debugging
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) information about IB multicast groups used by the IPoIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) config INFINIBAND_IPOIB_DEBUG_DATA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) bool "IP-over-InfiniBand data path debugging"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) depends on INFINIBAND_IPOIB_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) This option compiles debugging code into the data path
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) of the IPoIB driver. The output can be turned on via the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) data_debug_level module parameter; however, even with output
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) turned off, this debugging code will have some performance
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) impact.