1. 15 2月, 2017 3 次提交
  2. 14 2月, 2017 1 次提交
  3. 11 1月, 2017 1 次提交
    • P
      IB/core: added support to use rdma cgroup controller · 43579b5f
      Parav Pandit 提交于
      Added support APIs for IB core to register/unregister every IB/RDMA
      device with rdma cgroup for tracking rdma resources.
      IB core registers with rdma cgroup controller.
      Added support APIs for uverbs layer to make use of rdma controller.
      Added uverbs layer to perform resource charge/uncharge functionality.
      Added support during query_device uverb operation to ensure it
      returns resource limits by honoring rdma cgroup configured limits.
      Signed-off-by: NParav Pandit <pandit.parav@gmail.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      43579b5f
  4. 25 12月, 2016 1 次提交
  5. 14 12月, 2016 5 次提交
  6. 17 11月, 2016 1 次提交
  7. 08 10月, 2016 3 次提交
  8. 24 9月, 2016 1 次提交
  9. 23 6月, 2016 5 次提交
  10. 18 5月, 2016 1 次提交
    • C
      IB/core: Do not require CAP_NET_ADMIN for packet sniffing · e3b6d8cf
      Christoph Lameter 提交于
      In the Ethernet/TCP world, CAP_NET_RAW is sufficient to allow a program
      to listen to all incoming packets on a specific interface, and the
      higher CAP_NET_ADMIN is required to set the interface into promiscuous
      mode.  We want to emulate that same basic division of privilege in the
      RDMA stack, so when dealing with Raw Ethernet QPs, allow apps with
      CAP_NET_RAW to listen to all incoming flows (and direct them as they see
      fit in their own listen stream).  Do not require CAP_NET_ADMIN just to
      listen to traffic already incoming.  Reserve CAP_NET_ADMIN if we attempt
      to set promiscuous mode.
      Signed-off-by: NChristoph Lameter <cl@linux.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      e3b6d8cf
  11. 14 5月, 2016 2 次提交
  12. 22 3月, 2016 2 次提交
  13. 03 3月, 2016 1 次提交
    • M
      IB/{core, mlx5}: Fix input len in vendor part of create_qp/srq · 3d943c9d
      Majd Dibbiny 提交于
      Currently, the inlen field of the vendor's part of the command
      doesn't match the command buffer. This happens because the inlen
      accommodates ib_uverbs_cmd_hdr which is deducted from the in buffer.
      This is problematic since the vendor function could be called either
      from the legacy verb (where the input length mismatches the actual
      length) or by the extended verb (where the length matches). The vendor
      has no idea which function calls it and therefore has no way to know
      how the length variable should be treated.
      
      Fixing this by aligning the inlen to the correct length.
      
      All vendor drivers either assumed that inlen >= sizeof(vendor_uhw_cmd)
      or just failed wrongly (mlx5) and fixed in this patch.
      
      Fixes: cfb5e088 ('IB/mlx5: Add CQE version 1 support to user QPs and SRQs')
      Signed-off-by: NMajd Dibbiny <majd@mellanox.com>
      Reviewed-by: NMatan Barak <matanb@mellanox.com>
      Reviewed-by: NHaggai Eran <haggaie@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      3d943c9d
  14. 02 3月, 2016 1 次提交
  15. 01 3月, 2016 1 次提交
    • M
      IB/core: Add don't trap flag to flow creation · a3100a78
      Marina Varshaver 提交于
      Don't trap flag (i.e. IB_FLOW_ATTR_FLAGS_DONT_TRAP) indicates that QP
      will receive traffic, but will not steal it.
      
      When a packet matches a flow steering rule that was created with
      the don't trap flag, the QPs assigned to this rule will get this
      packet, but matching will continue to other equal/lower priority
      rules. This will let other QPs assigned to those rules to get the
      packet too.
      
      If both don't trap rule and other rules have the same priority
      and match the same packet, the behavior is undefined.
      
      The don't trap flag can't be set with default rule types
      (i.e. IB_FLOW_ATTR_ALL_DEFAULT, IB_FLOW_ATTR_MC_DEFAULT) as default rules
      don't have rules after them and don't trap has no meaning here.
      Signed-off-by: NMarina Varshaver <marinav@mellanox.com>
      Reviewed-by: NMatan Barak <matanb@mellanox.com>
      Reviewed-by: NYishai Hadas <yishaih@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      a3100a78
  16. 24 12月, 2015 3 次提交
  17. 23 12月, 2015 1 次提交
  18. 08 12月, 2015 2 次提交
  19. 22 10月, 2015 5 次提交