1. 08 12月, 2018 5 次提交
  2. 06 12月, 2018 4 次提交
  3. 05 12月, 2018 5 次提交
  4. 04 12月, 2018 4 次提交
  5. 01 12月, 2018 4 次提交
  6. 28 11月, 2018 5 次提交
  7. 24 11月, 2018 2 次提交
    • P
      switchdev: Replace port obj add/del SDO with a notification · d17d9f5e
      Petr Machata 提交于
      Drop switchdev_ops.switchdev_port_obj_add and _del. Drop the uses of
      this field from all clients, which were migrated to use switchdev
      notification in the previous patches.
      
      Add a new function switchdev_port_obj_notify() that sends the switchdev
      notifications SWITCHDEV_PORT_OBJ_ADD and _DEL.
      
      Update switchdev_port_obj_del_now() to dispatch to this new function.
      Drop __switchdev_port_obj_add() and update switchdev_port_obj_add()
      likewise.
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d17d9f5e
    • P
      mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_OBJ_ADD/_DEL · 52a227b3
      Petr Machata 提交于
      Following patches will change the way of distributing port object
      changes from a switchdev operation to a switchdev notifier. The
      switchdev code currently recursively descends through layers of lower
      devices, eventually calling the op on a front-panel port device. The
      notifier will instead be sent referencing the bridge port device, which
      may be a stacking device that's one of front-panel ports uppers, or a
      completely unrelated device.
      
      To handle SWITCHDEV_PORT_OBJ_ADD and _DEL, subscribe to the blocking
      notifier chain. Dispatch to mlxsw_sp_port_obj_add() resp. _del() to
      maintain the behavior that the switchdev operation based code currently
      has. Defer to switchdev_handle_port_obj_add() / _del() to handle the
      recursive descend, because mlxsw supports a number of upper types.
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      52a227b3
  8. 23 11月, 2018 1 次提交
  9. 22 11月, 2018 8 次提交
  10. 21 11月, 2018 1 次提交
    • V
      mlxsw: core: Extend cooling device with cooling levels · a421ce08
      Vadim Pasternak 提交于
      Extend cooling device with cooling levels vector to allow more
      flexibility of PWM setting.
      
      Thermal zone algorithm operates with the numerical states for PWM
      setting. Each state is the index, defined in range from 0 to 10 and it's
      mapped to the relevant duty cycle value, which is written to PWM
      controller. With the current definition fan speed is set to 0% for state
      0, 10% for state 1, and so on up to 100% for the maximum state 10.
      
      Some systems have limitation for the PWM speed minimum. For such systems
      PWM setting speed to 0% will just disable the ability to increase speed
      anymore and such device will be stall on zero speed.  Cooling levels
      allow to configure state vector according to the particular system
      requirements. For example, if PWM speed is not allowed to be below 30%,
      cooling levels could be configured as 30%, 30%, 30%, 30%, 40%, 50% and
      so on.
      Signed-off-by: NVadim Pasternak <vadimp@mellanox.com>
      Reviewed-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a421ce08
  11. 20 11月, 2018 1 次提交