Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librdmacm: Misc. fixes #1458

Merged
merged 2 commits into from
May 8, 2024
Merged

librdmacm: Misc. fixes #1458

merged 2 commits into from
May 8, 2024

Commits on May 5, 2024

  1. librdmacm: Ack the pending event in sync UD connection

    When the server accepts a UD connection request in sync mode,
    the event needs to be acked, otherwise destroying the
    listening id would get stuck because there is a pending event.
    For RC, the event is acked in ucma_complete().
    
    Fixes: 332b203 ("librdmacm: Do not wait in rdma_accept for UD QPs")
    Signed-off-by: Oren Sidi <[email protected]>
    Reviewed-by: Leon Romanovsky <[email protected]>
    Reviewed-by: Sean Hefty <[email protected]>
    Signed-off-by: Yishai Hadas <[email protected]>
    Oren Sidi authored and Yishai Hadas committed May 5, 2024
    Configuration menu
    Copy the full SHA
    9a0fc3a View commit details
    Browse the repository at this point in the history
  2. librdmacm: Fix an overflow bug in qsort comparison function

    The comparison function dev_cmp() doesn't work with 64b pointers in some
    cases, as it casts the pointer to int. For example it's not able to sort
    this list:
      {0xfffe0c2f0b00, 0xaaac741b4a90, 0xaaac741b4d70}
    
    Fixes: e5d371c ("librdmacm: Globally store and sort IB device list")
    Signed-off-by: Mark Zhang <[email protected]>
    Reviewed-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Yishai Hadas <[email protected]>
    MarkZhang81 authored and Yishai Hadas committed May 5, 2024
    Configuration menu
    Copy the full SHA
    c4a5ac8 View commit details
    Browse the repository at this point in the history