1. 14 8月, 2019 8 次提交
  2. 13 8月, 2019 2 次提交
  3. 12 8月, 2019 19 次提交
  4. 08 8月, 2019 1 次提交
  5. 07 8月, 2019 1 次提交
  6. 06 8月, 2019 3 次提交
  7. 05 8月, 2019 1 次提交
  8. 04 8月, 2019 2 次提交
  9. 03 8月, 2019 1 次提交
  10. 02 8月, 2019 2 次提交
    • P
      net/mlx5: E-switch, Tide up eswitch config sequence · 5896b972
      Parav Pandit 提交于
      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: NParav Pandit <parav@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      5896b972
    • P
      net/mlx5: E-Switch, Remove redundant mc_promisc NULL check · 131ce701
      Parav Pandit 提交于
      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: NParav Pandit <parav@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      131ce701