diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-02-07 11:22:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-08 15:02:49 -0800 |
commit | c4c2dc54293c556b8a05b9da024f92f8225a9eb8 (patch) | |
tree | b0a73688b5c299a19ce94e868c819815c5f415ee /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | |
parent | b2d6b4d2beee81e1c30501954dc4ba198bb996c4 (diff) | |
download | linux-stable-c4c2dc54293c556b8a05b9da024f92f8225a9eb8.tar.gz linux-stable-c4c2dc54293c556b8a05b9da024f92f8225a9eb8.tar.bz2 linux-stable-c4c2dc54293c556b8a05b9da024f92f8225a9eb8.zip |
mlxsw: spectrum_acl: Split entry struct into entry and ventry
Do the split of entry struct so the new entry struct is related to the
actual HW entry, whereas ventry struct is a SW abstration of that.
This split prepares possibility for ventry to hold 2 HW entries which
is needed for region ERP rehash flow.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c index 2649d128a57c..38e027815393 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c @@ -640,7 +640,7 @@ mlxsw_sp_acl_rule_create(struct mlxsw_sp *mlxsw_sp, int err; mlxsw_sp_acl_ruleset_ref_inc(ruleset); - rule = kzalloc(sizeof(*rule) + ops->rule_priv_size(mlxsw_sp), + rule = kzalloc(sizeof(*rule) + ops->rule_priv_size, GFP_KERNEL); if (!rule) { err = -ENOMEM; |