1. 03 7月, 2016 2 次提交
  2. 21 6月, 2016 23 次提交
  3. 18 6月, 2016 2 次提交
  4. 10 6月, 2016 3 次提交
    • B
      mlxsw: core: Remove deprecated create_workqueue · 3d5479e9
      Bhaktipriya Shridhar 提交于
      alloc_workqueue replaces deprecated create_workqueue().
      
      A dedicated workqueue has been used since the workqueue
      mlxsw_wq is used for FDB notif. processing with workitems that are
      involved in normal device operation && because it's a network device
      which can be depended upon during memory reclaim.
      
      Workitems &trans->timeout_dw and &mlxsw_sp->fdb_notify.dw,
      map to mlxsw_sp_fdb_notify_work (processes FDB notifications from the
      underlying device and resolves the netdev to which the entry points to
      and notifies the bridge using the switchdev notifier) and
      mlxsw_emad_trans_timeout_work (provides async EMAD register access)
      respectively. They require forward progress under memory pressure and
      hence, WQ_MEM_RECLAIM has been set.
      
      Since there are only a fixed number of work items, explicit concurrency
      limit is unnecessary here.
      Signed-off-by: NBhaktipriya Shridhar <bhaktipriya96@gmail.com>
      Tested-by: NIdo Schimmel <idosch@mellanox.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3d5479e9
    • I
      mlxsw: spectrum: Don't sleep during ndo_get_phys_port_name() · d664b41e
      Ido Schimmel 提交于
      When rtnl_fill_ifinfo() is called for a certain netdevice it queries its
      various parameters such as switch id and physical port name. The
      function might get called in an atomic context, which means the
      underlying driver must not sleep during the query operation.
      
      Don't query the device and sleep during ndo_get_phys_port_name(), but
      instead store the needed parameters in port creation time.
      
      Fixes: 2bf9a586 ("mlxsw: spectrum: Add support for physical port names")
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d664b41e
    • I
      mlxsw: spectrum: Make split flow match firmware requirements · be94535f
      Ido Schimmel 提交于
      When a port is created following a split / unsplit we need to map it to
      the correct module and lane, enable it and then continue to initialize
      its various parameters such as MTU and VLAN filters.
      
      Under certain conditions, such as trying to split ports at the bottom
      row of the front panel by four, we get firmware errors.
      
      After evaluating this with the firmware team it was decided to alter the
      split / unsplit flow, so that first all the affected ports are mapped,
      then enabled and finally each is initialized separately.
      
      Fix the split / unsplit flow by first mapping and enabling all the
      affected ports. Newer firmware versions will support both flows.
      
      Fixes: 18f1e70c ("mlxsw: spectrum: Introduce port splitting")
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      be94535f
  5. 07 5月, 2016 3 次提交
  6. 16 4月, 2016 2 次提交
  7. 15 4月, 2016 5 次提交