1. 25 8月, 2020 3 次提交
  2. 21 7月, 2020 3 次提交
  3. 08 7月, 2020 1 次提交
    • A
      net: qed: fix buffer overflow on ethtool -d · da328711
      Alexander Lobakin 提交于
      When generating debug dump, driver firstly collects all data in binary
      form, and then performs per-feature formatting to human-readable if it
      is supported.
      
      For ethtool -d, this is roughly incorrect for two reasons. First of all,
      drivers should always provide only original raw dumps to Ethtool without
      any changes.
      The second, and more critical, is that Ethtool's output buffer size is
      strictly determined by ethtool_ops::get_regs_len(), and all data *must*
      fit in it. The current version of driver always returns the size of raw
      data, but the size of the formatted buffer exceeds it in most cases.
      This leads to out-of-bound writes and memory corruption.
      
      Address both issues by adding an option to return original, non-formatted
      debug data, and using it for Ethtool case.
      
      v2:
       - Expand commit message to make it more clear;
       - No functional changes.
      
      Fixes: c965db44 ("qed: Add support for debug data collection")
      Signed-off-by: NAlexander Lobakin <alobakin@marvell.com>
      Signed-off-by: NIgor Russkikh <irusskikh@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      da328711
  4. 01 7月, 2020 2 次提交
  5. 15 5月, 2020 3 次提交
  6. 18 4月, 2020 1 次提交
  7. 27 1月, 2020 6 次提交
  8. 27 5月, 2019 2 次提交
  9. 15 4月, 2019 3 次提交
  10. 21 3月, 2019 1 次提交
  11. 22 2月, 2019 1 次提交
  12. 07 2月, 2019 1 次提交
  13. 29 1月, 2019 2 次提交
  14. 26 1月, 2019 1 次提交
  15. 23 1月, 2019 2 次提交
  16. 01 12月, 2018 2 次提交
  17. 17 10月, 2018 1 次提交
    • R
      qed: Align local and global PTT to propagate through the APIs. · 706d0891
      Rahul Verma 提交于
          Align the use of local PTT to propagate through the qed_mcp* API's.
          Global ptt should not be used.
      
          Register access should be done through layers. Register address is
          mapped into a PTT, PF translation table. Several interface functions
          require a PTT to direct read/write into register. There is a pool of
          PTT maintained, and several PTT are used simultaneously to access
          device registers in different flows. Same PTT should not be used in
          flows that can run concurrently.
          To avoid running out of PTT resources, too many PTT should not be
          acquired without releasing them. Every PF has a global PTT, which is
          used throughout the life of PF, in most important flows for register
          access. Generic functions acquire the PTT locally and release after
          the use. This patch aligns the use of Global PTT and Local PTT
          accordingly.
      Signed-off-by: NRahul Verma <rahul.verma@cavium.com>
      Signed-off-by: NAriel Elior <ariel.elior@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      706d0891
  18. 06 9月, 2018 1 次提交
    • D
      qed*: Utilize FW 8.37.7.0 · a3f72307
      Denis Bolotin 提交于
      This patch adds a new qed firmware with fixes and support for new features.
      
      Fixes:
      - Fix a rare case of device crash with iWARP, iSCSI or FCoE offload.
      - Fix GRE tunneled traffic when iWARP offload is enabled.
      - Fix RoCE failure in ib_send_bw when using inline data.
      - Fix latency optimization flow for inline WQEs.
      - BigBear 100G fix
      
      RDMA:
      - Reduce task context size.
      - Application page sizes above 2GB support.
      - Performance improvements.
      
      ETH:
      - Tenant DCB support.
      - Replace RSS indirection table update interface.
      
      Misc:
      - Debug Tools changes.
      Signed-off-by: NDenis Bolotin <denis.bolotin@cavium.com>
      Signed-off-by: NAriel Elior <ariel.elior@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a3f72307
  19. 08 8月, 2018 2 次提交
  20. 05 7月, 2018 1 次提交
  21. 23 5月, 2018 1 次提交