1. 10 7月, 2020 3 次提交
  2. 31 3月, 2020 2 次提交
  3. 28 2月, 2020 1 次提交
  4. 25 2月, 2020 4 次提交
  5. 24 2月, 2020 2 次提交
  6. 20 2月, 2020 1 次提交
  7. 13 11月, 2019 5 次提交
  8. 12 11月, 2019 2 次提交
  9. 10 11月, 2019 1 次提交
  10. 09 11月, 2019 1 次提交
  11. 01 11月, 2019 1 次提交
  12. 31 10月, 2019 1 次提交
    • J
      mlxsw: core: Unpublish devlink parameters during reload · b7265a0d
      Jiri Pirko 提交于
      The devlink parameter "acl_region_rehash_interval" is a runtime
      parameter whose value is stored in a dynamically allocated memory. While
      reloading the driver, this memory is freed and then allocated again. A
      use-after-free might happen if during this time frame someone tries to
      retrieve its value.
      
      Since commit 070c63f2 ("net: devlink: allow to change namespaces
      during reload") the use-after-free can be reliably triggered when
      reloading the driver into a namespace, as after freeing the memory (via
      reload_down() callback) all the parameters are notified.
      
      Fix this by unpublishing and then re-publishing the parameters during
      reload.
      
      Fixes: 98bbf70c ("mlxsw: spectrum: add "acl_region_rehash_interval" devlink param")
      Fixes: 7c62cfb8 ("devlink: publish params only after driver init is done")
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b7265a0d
  13. 07 10月, 2019 1 次提交
  14. 05 10月, 2019 2 次提交
  15. 17 9月, 2019 1 次提交
  16. 14 9月, 2019 2 次提交
  17. 22 8月, 2019 2 次提交
  18. 02 7月, 2019 1 次提交
    • P
      mlxsw: pci: PTP: Hook into packet transmit path · 0714256c
      Petr Machata 提交于
      On Spectrum-1, timestamps are delivered separately from the packets, and
      need to paired up. Therefore, at some point after mlxsw_sp_port_xmit()
      is invoked, it is necessary to involve the chip-specific driver code to
      allow it to do the necessary bookkeeping and matching.
      
      On Spectrum-2, timestamps are delivered in CQE. For that reason,
      position the point of driver involvement into mlxsw_pci_cqe_sdq_handle()
      to make it hopefully easier to extend for Spectrum-2 in the future.
      
      To tell the driver what port the packet was sent on, keep tx_info
      in SKB control buffer.
      
      Introduce a new driver core interface mlxsw_core_ptp_transmitted(), a
      driver callback ptp_transmitted, and a PTP op transmitted. The callee is
      responsible for taking care of releasing the SKB passed to the new
      interfaces, and correspondingly have the new stub callbacks just call
      dev_kfree_skb_any().
      
      Follow-up patches will introduce the actual content into
      mlxsw_sp1_ptp_transmitted() in particular.
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0714256c
  19. 14 6月, 2019 1 次提交
  20. 05 6月, 2019 1 次提交
  21. 31 5月, 2019 1 次提交
  22. 19 5月, 2019 1 次提交
  23. 23 4月, 2019 2 次提交
  24. 11 4月, 2019 1 次提交