1. 04 1月, 2018 3 次提交
  2. 29 12月, 2017 3 次提交
  3. 28 12月, 2017 1 次提交
  4. 23 12月, 2017 1 次提交
  5. 22 12月, 2017 1 次提交
  6. 14 11月, 2017 3 次提交
  7. 11 11月, 2017 1 次提交
  8. 26 10月, 2017 4 次提交
  9. 05 10月, 2017 1 次提交
  10. 25 9月, 2017 1 次提交
  11. 23 9月, 2017 1 次提交
  12. 29 8月, 2017 2 次提交
  13. 25 8月, 2017 7 次提交
  14. 23 8月, 2017 1 次提交
  15. 10 8月, 2017 1 次提交
    • L
      RDMA: Simplify get firmware interface · 9abb0d1b
      Leon Romanovsky 提交于
      There is a need to forward FW version to user space
      application through RDMA netlink. In order to make it safe, there
      is need to declare nla_policy and limit the size of FW string.
      
      The new define IB_FW_VERSION_NAME_MAX will limit the size of
      FW version string. That define was chosen to be equal to
      ETHTOOL_FWVERS_LEN, because many drivers anyway are limited
      by that value indirectly.
      
      The introduction of this define allows us to remove the string size
      from get_fw_str function signature.
      Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
      9abb0d1b
  16. 09 8月, 2017 1 次提交
  17. 24 7月, 2017 8 次提交
    • C
      net/mlx5: fix spelling mistake: "alloated" -> "allocated" · 9c2d33d4
      Colin Ian King 提交于
      Trivial fix to spelling mistake in mlx5_ib_dbg message
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      9c2d33d4
    • P
      IB/mlx5: Expose extended error counters · 58dcb60a
      Parav Pandit 提交于
      This patch adds below requester and responder side error counters,
      which will be exposed by hardware counters interface and are supported
      as part of query Q counters command extension.
      
       +---------------------------+-------------------------------------+
       |      Name                 |           Description               |
       |---------------------------+-------------------------------------|
       |resp_local_length_error    | Number of times responder detected  |
       |                           | local length errors                 |
       |---------------------------+-------------------------------------|
       |resp_cqe_error             | Number of CQEs completed with error |
       |                           | at responder                        |
       |---------------------------+-------------------------------------|
       |req_cqe_error              | Number of CQEs completed with error |
       |                           | at requester                        |
       |---------------------------+-------------------------------------|
       |req_remote_invalid_request | Number of times requester detected  |
       |                           | remote invalid request error        |
       |---------------------------+-------------------------------------|
       |req_remote_access_error    | Number of times requester detected  |
       |                           | remote access error                 |
       |---------------------------+-------------------------------------|
       |resp_remote_access_error   | Number of times responder detected  |
       |                           | remote access error                 |
       |---------------------------+-------------------------------------|
       |resp_cqe_flush_error       | Number of CQEs completed with       |
       |                           | flushed with error at responder     |
       |---------------------------+-------------------------------------|
       |req_cqe_flush_error        | Number of CQEs completed with       |
       |                           | flushed with error at requester     |
       +---------------------------+-------------------------------------+
      Signed-off-by: NParav Pandit <parav@mellanox.com>
      Reviewed-by: NDaniel Jurgens <danielj@mellanox.com>
      Reviewed-by: NEli Cohen <eli@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      58dcb60a
    • Y
      IB/mlx5: Report RX checksum capabilities for IPoIB · 1d54f890
      Yishai Hadas 提交于
      Report RX checksum capabilities when 'ipoib_enhanced_offloads'
      capabilities are set and support checksum.
      Signed-off-by: NYishai Hadas <yishaih@mellanox.com>
      Reviewed-by: NMaor Gottlieb <maorg@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      1d54f890
    • Y
      IB/mlx5: Add multicast flow steering support for underlay QP · 81e30880
      Yishai Hadas 提交于
      In order to add multicast flow steering support, there is need
      to block the attaching of mcg flow for underlay QP, recognize
      multicast IB_FLOW_SPEC_IPV4 based on its IP and enable
      creating/destroying flow for IB layer.
      Signed-off-by: NYishai Hadas <yishaih@mellanox.com>
      Reviewed-by: NMaor Gottlieb <maorg@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      81e30880
    • M
      IB/mlx5: Add delay drop configuration and statistics · fe248c3a
      Maor Gottlieb 提交于
      Add debugfs interface for monitor the number of delay drop timeout
      events and the number of existing dropless RQs in the system.
      
      In addition add debugfs interface for configuring the global timeout value
      which is used in the SET_DELAY_DROP command.
      Signed-off-by: NMaor Gottlieb <maorg@mellanox.com>
      Reviewed-by: NYishai Hadas <yishaih@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      fe248c3a
    • M
      IB/mlx5: Add support to dropless RQ · 03404e8a
      Maor Gottlieb 提交于
      RQs that were configured for "delay drop" will prevent packet drops
      when their WQEs are depleted.
      Marking an RQ to be drop-less is done by setting delay_drop_en in RQ
      context using CREATE_RQ command.
      
      Since this feature is globally activated/deactivated by using the
      SET_DELAY_DROP command on all the marked RQs, we activated/deactivated
      it according to the number of RQs with 'delay_drop' enabled.
      
      When timeout is expired, then the feature is deactivated. Therefore
      the driver handles the delay drop timeout event and reactivate it.
      Signed-off-by: NMaor Gottlieb <maorg@mellanox.com>
      Reviewed-by: NYishai Hadas <yishaih@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      03404e8a
    • P
      IB/mlx5: Add debug control parameters for congestion control · 4a2da0b8
      Parav Pandit 提交于
      This patch adds debug control parameters for congestion control which
      can be read or written through debugfs. They are for reaction point and
      notification point nodes.
      
      These control parameters are as below:
       +------------------------------+-----------------------------------------+
       |      Name                    |           Description                   |
       |------------------------------+-----------------------------------------|
       |rp_clamp_tgt_rate             | When set target rate is updated to      |
       |                              | current rate                            |
       |------------------------------+-----------------------------------------|
       |rp_clamp_tgt_rate_ati         | When set update target rate based on    |
       |                              | timer as well                           |
       |------------------------------+-----------------------------------------|
       |rp_time_reset                 | time between rate increase if no        |
       |                              | CNP is received unit in usec            |
       |------------------------------+-----------------------------------------|
       |rp_byte_reset                 | Number of bytes between rate inease if  |
       |                              | no CNP is received                      |
       |------------------------------+-----------------------------------------|
       |rp_threshold                  | Threshold for reaction point rate       |
       |                              | control                                 |
       |------------------------------+-----------------------------------------|
       |rp_ai_rate                    | Rate for target rate, unit in Mbps      |
       |------------------------------+-----------------------------------------|
       |rp_hai_rate                   | Rate for hyper increase state           |
       |                              | unit in Mbps                            |
       |------------------------------+-----------------------------------------|
       |rp_min_dec_fac                | Minimum factor by which the current     |
       |                              | transmit rate can be changed when       |
       |                              | processing a CNP, unit is percerntage   |
       |------------------------------+-----------------------------------------|
       |rp_min_rate                   | Minimum value for rate limit,           |
       |                              | unit in Mbps                            |
       |------------------------------+-----------------------------------------|
       |rp_rate_to_set_on_first_cnp   | Rate that is set when first CNP is      |
       |                              | received, unit is Mbps                  |
       |------------------------------+-----------------------------------------|
       |rp_dce_tcp_g                  | Used to calculate alpha                 |
       |------------------------------+-----------------------------------------|
       |rp_dce_tcp_rtt                | Time between updates of alpha value,    |
       |                              | unit is usec                            |
       |------------------------------+-----------------------------------------|
       |rp_rate_reduce_monitor_period | Minimum time between consecutive rate   |
       |                              | reductions                              |
       |------------------------------+-----------------------------------------|
       |rp_initial_alpha_value        | Initial value of alpha                  |
       |------------------------------+-----------------------------------------|
       |rp_gd                         | When CNP is received, flow rate is      |
       |                              | reduced based on gd, rp_gd is given as  |
       |                              | log2(rp_gd)                             |
       |------------------------------+-----------------------------------------|
       |np_cnp_dscp                   | dscp code point for generated cnp       |
       |------------------------------+-----------------------------------------|
       |np_cnp_prio_mode              | 802.1p priority for generated cnp       |
       |------------------------------+-----------------------------------------|
       |np_cnp_prio                   | cnp priority mode                       |
       +------------------------------+-----------------------------------------+
      Signed-off-by: NParav Pandit <parav@mellanox.com>
      Reviewed-by: NDaniel Jurgens <danielj@mellanox.com>
      Reviewed-by: NEli Cohen <eli@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      4a2da0b8
    • M
      IB/mlx5: Change logic for dispatching IB events for port state · fd65f1b8
      Moni Shoua 提交于
      The old logic ignored link state. This led to missing IB events like
      when link goes down on the switch while admin state is up or to redundant
      events like when admin state goes up while link is down.
      To fix that, probe the port state on NETDEV events and compare to last
      known state to decide if IB events needs to be dispatched.
      
      FIxes: 5ec8c83e ("IB/mlx5: Port events in RoCE now rely on netdev events")
      Signed-off-by: NMoni Shoua <monis@mellanox.com>
      Reviewed-by: NNoa Osherovich <noaos@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      fd65f1b8