1. 30 Oct, 2016 1 commit
    • Mark Bloch's avatar
      net/mlx5: Add multi dest support · 74491de9
      Mark Bloch authored
      Currently when calling mlx5_add_flow_rule we accept
      only one flow destination, this commit allows to pass
      multiple destinations.
      This change forces us to change the return structure to a more
      flexible one. We introduce a flow handle (struct mlx5_flow_handle),
      it holds internally the number for rules created and holds an array
      where each cell points the to a flow rule.
      From the consumers (of mlx5_add_flow_rule) point of view this
      change is only cosmetic and requires only to change the type
      of the returned value they store.
      From the core point of view, we now need to use a loop when
      allocating and deleting rules (e.g given to us a flow handler).
      Signed-off-by: default avatarMark Bloch <markb@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
  2. 03 Oct, 2016 1 commit
    • Arnd Bergmann's avatar
      net/mlx5e: shut up maybe-uninitialized warning · d0debb76
      Arnd Bergmann authored
      Build-testing this driver with -Wmaybe-uninitialized gives a new false-positive
      warning that I can't really explain:
      drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function 'mlx5e_configure_flower':
      drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:509:3: error: 'old_attr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      It's obvious from the code that 'old_attr' is initialized whenever 'old'
      is non-NULL here. The warning appears with all versions I tested from gcc-4.7
      through gcc-6.1, and I could not come up with a way to rewrite the function
      in a more readable way that avoids the warning, so I'm adding another
      initialization to shut it up.
      Fixes: 8b32580d
       ("net/mlx5e: Add TC vlan action for SRIOV offloads")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  3. 23 Sep, 2016 4 commits
  4. 19 Aug, 2016 1 commit
  5. 17 Aug, 2016 1 commit
  6. 14 Jul, 2016 4 commits
  7. 05 Jul, 2016 1 commit
  8. 16 May, 2016 1 commit
  9. 29 Apr, 2016 2 commits
  10. 10 Mar, 2016 3 commits