commit | 6627b93bf74b56e8a994c9b5972db51a9692a1e4 | [log] [tgz] |
---|---|---|
author | Ido Schimmel <idosch@mellanox.com> | Thu Feb 20 09:07:49 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Feb 20 10:04:33 2020 -0800 |
tree | f334aebb8e243593f742729b44471a5329760eee | |
parent | 9a9f8d1e749a5c4df167bc964277c75b952e32b5 [diff] |
mlxsw: spectrum_span: Use struct_size() to simplify allocation Allocate the main mirroring struct and the individual structs for the different mirroring agents in a single allocation. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>