Giter Club home page Giter Club logo

linux's People

Stargazers

 avatar

Watchers

 avatar  avatar

linux's Issues

Remove skb linearization

Function rxe_udp_encap_recv is responsible for receiving the RoCE packets. For each packet, it linearizes the skb:

if (skb_linearize(skb)) {

This operation hurts performance a lot and must be removed from the critical path. Unfortunately, it requires non-trivial changes through the whole driver code, as accessing packet becomes less trivial.

Remove av from user-shared buffer

When posting a UD WQE, the user-level buffer code provides the full address (destination GID), instead of AH handle. This seems to be unnecessary because it increases the message size and happens in the kernel anyway. Why do the same work twice?

To solve the issue, the following structure must be unshared from the user code (similar changes to be done in rdma-core repo)

struct rxe_av {
__u8 port_num;
__u8 network_type;
__u8 dmac[6];
struct rxe_global_route grh;
union {
struct sockaddr_in _sockaddr_in;
struct sockaddr_in6 _sockaddr_in6;
} sgid_addr, dgid_addr;
};

The API must be restructured to pass AH handle instead of AV.

The corresponding snippets in the rdma-core are following:

https://github.com/planetA/rdma-core/blob/54c238172ce90ee3513c946eeaa25965f88e7620/providers/rxe/rxe.c#L605-L607

https://github.com/planetA/rdma-core/blob/54c238172ce90ee3513c946eeaa25965f88e7620/kernel-headers/rdma/rdma_user_rxe.h#L58-L67

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.