1. 07 Dec, 2018 11 commits
  2. 05 Dec, 2018 4 commits
  3. 04 Dec, 2018 20 commits
  4. 03 Dec, 2018 5 commits
    • Leon Romanovsky's avatar
      RDMA/nldev: Export to user space number of contexts · ffd321e4
      Leon Romanovsky authored
      [leonro@server ~]$ rdma res show
      1: mlx5_0: pd 3 cq 5 qp 4 cm_id 0 mr 0 ctx 0
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      ffd321e4
    • Leon Romanovsky's avatar
      RDMA/uverbs: Annotate alloc/deallloc paths with context tracking · 12d23a91
      Leon Romanovsky authored
      Add restrack annotations to track allocations of ucontexts.
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      12d23a91
    • Leon Romanovsky's avatar
      RDMA/restrack: Track ucontext · 60615210
      Leon Romanovsky authored
      Add ability to track allocated ib_ucontext, which are limited
      resource and worth to be visible by users.
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      60615210
    • Doug Ledford's avatar
      Merge branch 'write-handler-consistent-flow' into for-next · 61d69528
      Doug Ledford authored
      Make all of the write() handlers use a consistent flow
      
      From Jason,
      
      This series unifies all the write handlers to use a flow that is very
      similar to the ioctl handler flow, including having the same basic
      assumptions about extensible buffer handling and the same handler
      function call signature.
      
      Along the way this consolidates all the copy_to/from_user into a small
      set of safe buffer accessor functions tailored to the usage here. These
      accessors use the new dispatcher-controlled calling convention for ucore
      data, and support a placement of the response that does not rely on the
      cmd.response value.
      
      Overall this brings in in strong bounds checking to all the write()
      handlers and consistent enforcement of the zero-fill/zero-check
      methodology for buffer extension.
      
      The end result is a significant complexity reduction for all of the
      handlers and creates a high degree of uniformity between the write,
      write_ex, and ioctl handlers and dispatch flow.
      
      Thanks
      
      Jason Gunthorpe (12):
        RDMA/uverbs: Remove out_len checks that are now done by the core
        RDMA/uverbs: Use uverbs_attr_bundle to pass ucore for write/write_ex
        RDMA/uverbs: Get rid of the 'callback' scheme in the compat path
        RDMA/uverbs: Use uverbs_response() for remaining response copying
        RDMA/uverbs: Use uverbs_request() for request copying
        RDMA/uverbs: Use uverbs_request() and core for write_ex handlers
        RDMA/uverbs: Fill in the response for IB_USER_VERBS_EX_CMD_MODIFY_QP
        RDMA/uverbs: Simplify ib_uverbs_ex_query_device
        RDMA/uverbs: Add a simple iterator interface for reading the command
        RDMA/uverbs: Use the iterator for ib_uverbs_unmarshall_recv()
        RDMA/uverbs: Do not check the input length on create_cq/qp paths
        RDMA/uverbs: Use only attrs for the write() handler signature
      
       drivers/infiniband/core/rdma_core.h   |    5 +-
       drivers/infiniband/core/uverbs_cmd.c  | 1165 ++++++++++---------------
       drivers/infiniband/core/uverbs_main.c |   23 +-
       drivers/infiniband/core/uverbs_uapi.c |   23 +-
       include/rdma/uverbs_ioctl.h           |    9 +-
       5 files changed, 479 insertions(+), 746 deletions(-)
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      61d69528
    • Jason Gunthorpe's avatar
      RDMA/uverbs: Use only attrs for the write() handler signature · 974d6b4b
      Jason Gunthorpe authored
      All of the old arguments can be derived from the uverbs_attr_bundle
      structure, so get rid of the redundant arguments. Most of the prior work
      has been removing users of the arguments to allow this to be a simple
      patch.
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
      974d6b4b