Code Monkey home page Code Monkey logo

librxe-dev's Introduction

librxe-dev

Development repository for RXE user space code. Soft RDMA over Ethernet (RoCE) Driver

Source

Kernel Space Driver

This repository contains a full kernel source tree, with the RoCE driver code located in the directory drivers/infiniband/hw/rxe.

Github: https://github.com/SoftRoCE/rxe-dev.git Active Branch: master-next User Space Library

Github: https://github.com/SoftRoCE/librxe-dev.git (this repository) Current Version: librxe-1.0.0 Build Instructions

Compile and install kernel:

Clone kernel git: git clone https://github.com/SoftRoCE/rxe-dev.git Compile kernel: Enter the source directory cd rxe-dev cp /boot/config-$(uname –r) .config make menuconfig Need to enable “Software RDMA over Ethernet (RoCE) driver” in category "Device Drivers -> Infiniband" Need to enable CONFIG_INFINIBAND_ADDR_TRANS=y and CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y in new config file .config make –j 32 make modules_install make install Verify that the new kernel entry is added (e.g. to grub); if not, need to add it manually. Boot with new kernel. Install user space library (librxe):

Install the following package (example shown using RedHat): yum install perl-Switch (name might vary according to distribution) Make sure that the following upstream user space libraries are installed: libibverbs libibverbs-devel libibverbs-utils librdmacm librdmacm-devel librdmacm-utils Compile and install user space library librxe: git clone https://github.com/SoftRoCE/librxe-dev.git cd librxe-dev ./configure --libdir=/usr/lib64/ --prefix= make make install Configure Soft-RoCE (RXE):

Load rdma_rxe kernel module using the rxe_cfg script included in the librxe RPM: rxe_cfg start (this might require sudo or root privileges) Create RXE device over network interface (e.g. eth0): rxe_cfg add eth0 Use the status command to display the current configuration: rxe_cfg status If configured successfully, you should see output similar to the following: Name Link Driver Speed NMTU IPv4_addr RDEV RMTU
eth0 yes mlx4_en rxe0 1024 (3) If you are using a Mellanox HCA: Need to make sure that the mlx4_ib kernel module is not loaded (modprobe –rv mlx4_ib) in the soft-RoCE machine. Now you have an Infiniband device called “rxe0” that can be used to run any RoCE app.

librxe-dev's People

Contributors

kmoran avatar monis410 avatar amirv avatar regevl avatar

Watchers

James Cloos avatar WanQun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.