1. 30 Nov, 2018 7 commits
    • Saeed Mahameed's avatar
      IB/mlx5: Handle raw port change event rather than the software version · 134e9349
      Saeed Mahameed authored
      Use the FW version of the port change event as forwarded via new mlx5
      notifiers API.
      
      After this patch, processed software version of the port change event
      will become deprecated and will be totally removed in downstream
      patches.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      134e9349
    • Saeed Mahameed's avatar
      net/mlx5: Remove unused events callback and logic · 02039fb6
      Saeed Mahameed authored
      The mlx5_interface->event callback is not used by mlx5e/mlx5_ib anymore.
      
      We totally remove the delayed events logic work around, since with
      the dynamic notifier registration API it is not needed anymore, mlx5_ib
      can register its notifier and start receiving events exactly at the moment
      it is ready to handle them.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      02039fb6
    • Saeed Mahameed's avatar
      IB/mlx5: Use the new mlx5 core notifier API · df097a27
      Saeed Mahameed authored
      Remove the deprecated mlx5_interface->event mlx5_ib callback and use new
      mlx5 notifier API to subscribe for mlx5 events.
      
      For native mlx5_ib devices profiles pf_profile/nic_rep_profile register
      the notifier callback mlx5_ib_handle_event which treats the notifier
      context as mlx5_ib_dev.
      
      For vport repesentors, don't register any notifier, same as before, they
      didn't receive any mlx5 events.
      
      For slave port (mlx5_ib_multiport_info) register a different notifier
      callback mlx5_ib_event_slave_port, which knows that the event is coming
      for mlx5_ib_multiport_info and prepares the event job accordingly.
      Before this on the event handler work we had to ask mlx5_core if this is
      a slave port mlx5_core_is_mp_slave(work->dev), now it is not needed
      anymore.
      mlx5_ib_multiport_info notifier registration is done on
      mlx5_ib_bind_slave_port and de-registration is done on
      mlx5_ib_unbind_slave_port.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      df097a27
    • Saeed Mahameed's avatar
      net/mlx5: Forward all mlx5 events to mlx5 notifiers chain · 58d180b3
      Saeed Mahameed authored
      This to allow seamless migration to the new notifier chain API, and to
      eventually deprecate interfaces dev->event callback.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      58d180b3
    • Saeed Mahameed's avatar
      net/mlx5e: Use the new mlx5 core notifier API · 7cffaddd
      Saeed Mahameed authored
      Remove the deprecated mlx5_interface->event mlx5e callback and use new
      mlx5 notifier API to subscribe for mlx5 events, handle port change event
      as received from FW rather than handling the mlx5 core processed port
      change software version event.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      7cffaddd
    • Saeed Mahameed's avatar
      net/mlx5: Allow port change event to be forwarded to driver notifiers chain · 7a179555
      Saeed Mahameed authored
      The idea is to allow mlx5 core interfaces (mlx5e/mlx5_ib) to be able to
      receive some allowed FW events as is via the new notifier API.
      
      In this patch we allow forwarding port change event to mlx5 core interfaces
      (mlx5e/mlx5_ib) as it was received from FW.
      Once mlx5e and mlx5_ib start using this event we can safely remove the
      redundant software version of it and its translation logic.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      7a179555
    • Saeed Mahameed's avatar
      net/mlx5: Driver events notifier API · 20902be4
      Saeed Mahameed authored
      Use atomic notifier chain to fire events to mlx5 core driver
      consumers (mlx5e/mlx5_ib) and provide mlx5 register/unregister notifier
      API.
      
      This API will replace the current mlx5_interface->event callback and all
      the logic around it, especially the delayed events logic introduced by
      commit 97834eba ("net/mlx5: Delay events till ib registration ends")
      
      Which is not needed anymore with this new API where the mlx5 interface
      can dynamically register/unregister its notifier.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      20902be4
  2. 26 Nov, 2018 11 commits
  3. 20 Nov, 2018 12 commits
  4. 12 Nov, 2018 7 commits
  5. 09 Nov, 2018 1 commit
  6. 07 Nov, 2018 1 commit
  7. 04 Nov, 2018 1 commit