1. 13 Aug, 2019 9 commits
  2. 12 Aug, 2019 19 commits
  3. 07 Aug, 2019 1 commit
  4. 06 Aug, 2019 1 commit
  5. 05 Aug, 2019 4 commits
  6. 04 Aug, 2019 2 commits
  7. 02 Aug, 2019 1 commit
  8. 01 Aug, 2019 3 commits
    • Parav Pandit's avatar
      net/mlx5: E-switch, Tide up eswitch config sequence · 5896b972
      Parav Pandit authored
      Currently for PF and ECPF vports, representors are created before
      their eswitch hardware ports are initialized in below flow.
      
      mlx5_eswitch_enable()
        esw_offloads_init()
          esw_offloads_load_all_reps()
      [..]
      esw_enable_vport()
      
      However for VFs, vports are initialized before creating their
      respective netdev represnetors in event handling context.
      
      Similarly while disabling eswitch, first hardware vports are disabled,
      followed by destroying their representors.
      Here while underlying vports gets destroyed but its respective user
      facing netdevice can still exist on which user can continue to perform
      more offload operations.
      
      Instead, its more accurate to do
      enable_eswitch switchdev mode:
      1. perform FDB tables initialization
      2. initialize hw vport
      3. create and publish representor for this vport
      
      disable_eswitch switchdev mode:
      1. destroy user facing representor for the vport
      2. disable hw vport
      3. perform FDB tables cleanup
      Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      5896b972
    • Parav Pandit's avatar
      net/mlx5: E-Switch, Remove redundant mc_promisc NULL check · 131ce701
      Parav Pandit authored
      mc_promisc pointer points to an instance of struct esw_mc_addr allocated
      as part of the esw structure.
      Hence it cannot be NULL.
      Removed such redundant check and assign where it is actually used.
      
      While at it, add comment around legacy mode fields and move mc_promisc
      close to other legacy mode structures to improve code redability.
      Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      131ce701
    • Saeed Mahameed's avatar
      net/mlx5: E-Switch, remove redundant error handling · 9ddb830a
      Saeed Mahameed authored
      We don't need to handle error flow of esw_create_legacy_table() in the
      same branch, it is already being handled directly after the if statement,
      for both legacy and switchdev modes in one place.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      Reviewed-by: default avatarRoi Dayan <roid@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      9ddb830a