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