readme.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Testing rdma-core userspace tools
  2. =================================
  3. Testing rdma-core using Linux software RoCE implementation:
  4. https://en.wikipedia.org/wiki/RDMA_over_Converged_Ethernet
  5. Using two systems with working TCP/IP configuration, for example:
  6. - Server IP: 192.168.123.10
  7. - Client IP: 192.168.123.20
  8. Make sure firewall configurations are appropriate. Routable RoCE v2
  9. uses udp/4791. ibv_rc_pingpong uses tcp/18515 for initial
  10. synchronization.
  11. Note: this test can be executed in two qemu virtual machines with
  12. bridged networking.
  13. Kernel configuration
  14. --------------------
  15. The Linux Kernel needs some InfiniBand configuration. In this example
  16. the kernel "rdma_rxe" driver is needed (CONFIG_RDMA_RXE=y). The Kernel
  17. config fragment file used for package test can be used as a starting
  18. point. See:
  19. support/testing/tests/package/test_rdma_core/linux-rdma.fragment
  20. Buildroot package configuration
  21. -------------------------------
  22. For setting up a software RoCE link, the "rdma" program is needed. It
  23. is provided by the "iproute2" package, when "libmnl" is also
  24. selected. Make sure to have in your Buildroot configuration:
  25. BR2_PACKAGE_IPROUTE2=y
  26. BR2_PACKAGE_LIBMNL=y
  27. BR2_PACKAGE_RDMA_CORE=y
  28. Setting up the rdma link
  29. ------------------------
  30. On both server and client:
  31. modprobe rdma_rxe
  32. rdma link add rxe0 type rxe netdev eth0
  33. Testing with rping
  34. ------------------
  35. On the server side, run the command:
  36. rping -s -v
  37. On the client side, run the command:
  38. rping -c -v -a 192.168.123.10
  39. Testing with ibv_rc_pingpong
  40. ----------------------------
  41. To test with the pingpong example using the reliable connected (RC)
  42. transport:
  43. On the server side, run the command:
  44. ibv_rc_pingpong -d rxe0 -g 1
  45. On the client side, run the command:
  46. ibv_rc_pingpong -d rxe0 -g 1 192.168.123.10