1. 10 Aug, 2017 3 commits
    • Leon Romanovsky's avatar
      RDMA/netlink: Avoid double pass for RDMA netlink messages · 3c3e75d5
      Leon Romanovsky authored
      The standard netlink_rcv_skb function skips messages without
      NLM_F_REQUEST flag in it, while SA netlink client issues them.
      
      In commit bc10ed7d ("IB/core: Add rdma netlink helper functions")
      the local function was introduced to allow such messages.
      
      This led to double pass for every incoming message.
      
      In this patch, we unify that local implementation and netlink_rcv_skb
      functions, so there will be no need for double pass anymore.
      
      As a outcome, this combined function gained more strict check
      for NLM_F_REQUEST flag and it is now allowed for SA pathquery
      client only.
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      3c3e75d5
    • Leon Romanovsky's avatar
      RDMA/netlink: Remove redundant owner option for netlink callbacks · 64401b69
      Leon Romanovsky authored
      Owner field is not needed to be set because netlink is part of ib_core
      which will be unloaded last after all other modules are unloaded.
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      64401b69
    • Leon Romanovsky's avatar
      RDMA/netlink: Remove netlink clients infrastructure · c9901724
      Leon Romanovsky authored
      RDMA netlink has a complicated infrastructure for dynamically
      registering and de-registering netlink clients to the NETLINK_RDMA
      group. The complicated portion of this code is not widely used because
      2 of the 3 current clients are statically compiled together with
      netlink.c. The infrastructure, therefore, is deemed overkill.
      
      Refactor the code to eliminate the dynamically added clients. Now all
      clients are pre-registered in a client array at compile time, and at run
      time they merely check-in with the infrastructure to pass their callback
      table for inclusion in the pre-sized client array.
      
      This also allows for future cleanups and removal of unneeded code in the
      iwcm* netlink handler.
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Reviewed-by: default avatarChien Tin Tung <chien.tin.tung@intel.com>
      c9901724
  2. 09 Aug, 2017 1 commit
  3. 31 Jul, 2017 23 commits
  4. 28 Jul, 2017 6 commits
  5. 27 Jul, 2017 4 commits
  6. 24 Jul, 2017 3 commits