ipoib.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. IP OVER INFINIBAND
  2. The ib_ipoib driver is an implementation of the IP over InfiniBand
  3. protocol as specified by RFC 4391 and 4392, issued by the IETF ipoib
  4. working group. It is a "native" implementation in the sense of
  5. setting the interface type to ARPHRD_INFINIBAND and the hardware
  6. address length to 20 (earlier proprietary implementations
  7. masqueraded to the kernel as ethernet interfaces).
  8. Partitions and P_Keys
  9. When the IPoIB driver is loaded, it creates one interface for each
  10. port using the P_Key at index 0. To create an interface with a
  11. different P_Key, write the desired P_Key into the main interface's
  12. /sys/class/net/<intf name>/create_child file. For example:
  13. echo 0x8001 > /sys/class/net/ib0/create_child
  14. This will create an interface named ib0.8001 with P_Key 0x8001. To
  15. remove a subinterface, use the "delete_child" file:
  16. echo 0x8001 > /sys/class/net/ib0/delete_child
  17. The P_Key for any interface is given by the "pkey" file, and the
  18. main interface for a subinterface is in "parent."
  19. Debugging Information
  20. By compiling the IPoIB driver with CONFIG_INFINIBAND_IPOIB_DEBUG set
  21. to 'y', tracing messages are compiled into the driver. They are
  22. turned on by setting the module parameters debug_level and
  23. mcast_debug_level to 1. These parameters can be controlled at
  24. runtime through files in /sys/module/ib_ipoib/.
  25. CONFIG_INFINIBAND_IPOIB_DEBUG also enables files in the debugfs
  26. virtual filesystem. By mounting this filesystem, for example with
  27. mount -t debugfs none /sys/kernel/debug
  28. it is possible to get statistics about multicast groups from the
  29. files /sys/kernel/debug/ipoib/ib0_mcg and so on.
  30. The performance impact of this option is negligible, so it
  31. is safe to enable this option with debug_level set to 0 for normal
  32. operation.
  33. CONFIG_INFINIBAND_IPOIB_DEBUG_DATA enables even more debug output in
  34. the data path when data_debug_level is set to 1. However, even with
  35. the output disabled, enabling this configuration option will affect
  36. performance, because it adds tests to the fast path.
  37. References
  38. Transmission of IP over InfiniBand (IPoIB) (RFC 4391)
  39. http://ietf.org/rfc/rfc4391.txt
  40. IP over InfiniBand (IPoIB) Architecture (RFC 4392)
  41. http://ietf.org/rfc/rfc4392.txt