diff options
author | Arkadi Sharshevsky <arkadis@mellanox.com> | 2017-03-17 09:38:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-21 17:16:10 -0700 |
commit | bf95233e206983d5a05a2e27700d2678ffdef62c (patch) | |
tree | 7e88189ad9bf0d3064fb9af7da0901ae21158ea3 /drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | |
parent | r8152: check hw version first (diff) | |
download | linux-dev-bf95233e206983d5a05a2e27700d2678ffdef62c.tar.xz linux-dev-bf95233e206983d5a05a2e27700d2678ffdef62c.zip |
mlxsw: spectrum: Cosmetic naming change
Currently the struct representing router interface "mlxsw_sp_rif"
is reffered as "r" in various places in the driver. Furthermore it
contains a member which specify the index which is called "rif".
This patch change "r" to "rif" and "rif" to "rif_index".
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c index 598727d578c1..d44d92fe7ff3 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c @@ -568,8 +568,8 @@ void mlxsw_sp_fid_destroy(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_fid *f) list_del(&f->list); - if (f->r) - mlxsw_sp_rif_bridge_destroy(mlxsw_sp, f->r); + if (f->rif) + mlxsw_sp_rif_bridge_destroy(mlxsw_sp, f->rif); kfree(f); |