1. 20 3月, 2018 3 次提交
    • B
      net/mlx5: Packet pacing enhancement · 05d3ac97
      Bodong Wang 提交于
      Add two new parameters: max_burst_sz and typical_pkt_size (both
      in bytes) to rate limit configurations.
      
      max_burst_sz: The device will schedule bursts of packets for an
      SQ connected to this rate, smaller than or equal to this value.
      Value 0x0 indicates packet bursts will be limited to the device
      defaults. This field should be used if bursts of packets must be
      strictly kept under a certain value.
      
      typical_pkt_size: When the rate limit is intended for a stream of
      similar packets, stating the typical packet size can improve the
      accuracy of the rate limiter. The expected packet size will be
      the same for all SQs associated with the same rate limit index.
      
      Ethernet driver is updated according to this change, but these two
      parameters will be kept as 0 due to lacking of proper way to get the
      configurations from user space which requires to change
      ndo_set_tx_maxrate interface.
      Signed-off-by: NBodong Wang <bodong@mellanox.com>
      Reviewed-by: NDaniel Jurgens <danielj@mellanox.com>
      Reviewed-by: NYishai Hadas <yishaih@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      05d3ac97
    • P
      IB/core: Remove unimplemented ib_peek_cq · b19744e9
      Parav Pandit 提交于
      ib_peek_cq() verb doesn't seem be implemented in current code.
      There is some past reference to it at [1] about it being unimplemented.
      
      Lot of user documentation created out of kdoc refers to this
      unimplemented API. Therefore, remove unimplemented API.
      
      [1] http://lists.openfabrics.org/pipermail/ofw/2008-May/002465.htmlSigned-off-by: NParav Pandit <parav@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      b19744e9
    • J
      RDMA/bnxt: Fix structure layout for bnxt_re_pd_resp · 958d2c1b
      Jason Gunthorpe 提交于
      What is going on here is a bit subtle, in the kernel there is no
      problem because the struct is copied using copy_from_user, so it
      can safely have an 8 byte alignment, however in userspace it must
      be constructed by concatenation with the ib_uverbs_alloc_pd_resp
      struct. This is due to the required memory layout to execute the
      command.
      
      Since ibv_uverbs_alloc_pd_resp is only 4 bytes long, this causes
      misalignment, and the user space will experience an unexpected padding.
      Currently it works around this via pointer maths.
      
      Make everything more robust by having the compiler reduce the alignment
      of the struct to 4. The userspace has assertions to ensure this
      works properly in all situations.
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      958d2c1b
  2. 16 3月, 2018 12 次提交
  3. 15 3月, 2018 2 次提交
  4. 14 3月, 2018 3 次提交
  5. 09 3月, 2018 4 次提交
  6. 08 3月, 2018 9 次提交
  7. 07 3月, 2018 3 次提交
  8. 24 2月, 2018 2 次提交
  9. 23 2月, 2018 1 次提交
  10. 16 2月, 2018 1 次提交