Skip to content

Commit 0ed4844

Browse files
committed
Merge branch 'mlxsw-cleanups'
Jiri Pirko says: ==================== mlxsw: small driver update Contains two cleanup patches. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 33928ee + abbdf4b commit 0ed4844

File tree

4 files changed

+153
-147
lines changed

4 files changed

+153
-147
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ static int mlxsw_sp_setup_tc(struct net_device *dev, u32 handle,
14231423
tc->cls_mall);
14241424
return 0;
14251425
default:
1426-
return -EINVAL;
1426+
return -EOPNOTSUPP;
14271427
}
14281428
case TC_SETUP_CLSFLOWER:
14291429
switch (tc->cls_flower->command) {
@@ -4088,8 +4088,8 @@ static void mlxsw_sp_master_bridge_vlan_unlink(struct mlxsw_sp *mlxsw_sp,
40884088
struct mlxsw_sp_fid *f;
40894089

40904090
f = mlxsw_sp_fid_find(mlxsw_sp, fid);
4091-
if (f && f->r)
4092-
mlxsw_sp_rif_bridge_destroy(mlxsw_sp, f->r);
4091+
if (f && f->rif)
4092+
mlxsw_sp_rif_bridge_destroy(mlxsw_sp, f->rif);
40934093
if (f && --f->ref_count == 0)
40944094
mlxsw_sp_fid_destroy(mlxsw_sp, f);
40954095
}
@@ -4206,8 +4206,8 @@ static void mlxsw_sp_vfid_destroy(struct mlxsw_sp *mlxsw_sp,
42064206
clear_bit(vfid, mlxsw_sp->vfids.mapped);
42074207
list_del(&f->list);
42084208

4209-
if (f->r)
4210-
mlxsw_sp_rif_bridge_destroy(mlxsw_sp, f->r);
4209+
if (f->rif)
4210+
mlxsw_sp_rif_bridge_destroy(mlxsw_sp, f->rif);
42114211

42124212
kfree(f);
42134213

drivers/net/ethernet/mellanox/mlxsw/spectrum.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct mlxsw_sp_fid {
103103
struct list_head list;
104104
unsigned int ref_count;
105105
struct net_device *dev;
106-
struct mlxsw_sp_rif *r;
106+
struct mlxsw_sp_rif *rif;
107107
u16 fid;
108108
};
109109

@@ -577,7 +577,7 @@ int mlxsw_sp_netdevice_router_port_event(struct net_device *dev);
577577
int mlxsw_sp_inetaddr_event(struct notifier_block *unused,
578578
unsigned long event, void *ptr);
579579
void mlxsw_sp_rif_bridge_destroy(struct mlxsw_sp *mlxsw_sp,
580-
struct mlxsw_sp_rif *r);
580+
struct mlxsw_sp_rif *rif);
581581
int mlxsw_sp_vport_vrf_join(struct mlxsw_sp_port *mlxsw_sp_vport);
582582
void mlxsw_sp_vport_vrf_leave(struct mlxsw_sp_port *mlxsw_sp_vport);
583583
int mlxsw_sp_port_vrf_join(struct mlxsw_sp_port *mlxsw_sp_port);

0 commit comments

Comments
 (0)