File tree Expand file tree Collapse file tree 3 files changed +0
-32
lines changed
drivers/net/ethernet/mellanox/mlx5/core Expand file tree Collapse file tree 3 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -256,28 +256,6 @@ void mlx5_reload_interface(struct mlx5_core_dev *mdev, int protocol)
256
256
mutex_unlock (& mlx5_intf_mutex );
257
257
}
258
258
259
- void * mlx5_get_protocol_dev (struct mlx5_core_dev * mdev , int protocol )
260
- {
261
- struct mlx5_priv * priv = & mdev -> priv ;
262
- struct mlx5_device_context * dev_ctx ;
263
- unsigned long flags ;
264
- void * result = NULL ;
265
-
266
- spin_lock_irqsave (& priv -> ctx_lock , flags );
267
-
268
- list_for_each_entry (dev_ctx , & mdev -> priv .ctx_list , list )
269
- if ((dev_ctx -> intf -> protocol == protocol ) &&
270
- dev_ctx -> intf -> get_dev ) {
271
- result = dev_ctx -> intf -> get_dev (dev_ctx -> context );
272
- break ;
273
- }
274
-
275
- spin_unlock_irqrestore (& priv -> ctx_lock , flags );
276
-
277
- return result ;
278
- }
279
- EXPORT_SYMBOL (mlx5_get_protocol_dev );
280
-
281
259
/* Must be called with intf_mutex held */
282
260
void mlx5_add_dev_by_protocol (struct mlx5_core_dev * dev , int protocol )
283
261
{
Original file line number Diff line number Diff line change @@ -5160,20 +5160,12 @@ static void mlx5e_remove(struct mlx5_core_dev *mdev, void *vpriv)
5160
5160
kfree (ppriv );
5161
5161
}
5162
5162
5163
- static void * mlx5e_get_netdev (void * vpriv )
5164
- {
5165
- struct mlx5e_priv * priv = vpriv ;
5166
-
5167
- return priv -> netdev ;
5168
- }
5169
-
5170
5163
static struct mlx5_interface mlx5e_interface = {
5171
5164
.add = mlx5e_add ,
5172
5165
.remove = mlx5e_remove ,
5173
5166
.attach = mlx5e_attach ,
5174
5167
.detach = mlx5e_detach ,
5175
5168
.protocol = MLX5_INTERFACE_PROTOCOL_ETH ,
5176
- .get_dev = mlx5e_get_netdev ,
5177
5169
};
5178
5170
5179
5171
void mlx5e_init (void )
Original file line number Diff line number Diff line change @@ -1004,12 +1004,10 @@ struct mlx5_interface {
1004
1004
void (* remove )(struct mlx5_core_dev * dev , void * context );
1005
1005
int (* attach )(struct mlx5_core_dev * dev , void * context );
1006
1006
void (* detach )(struct mlx5_core_dev * dev , void * context );
1007
- void * (* get_dev )(void * context );
1008
1007
int protocol ;
1009
1008
struct list_head list ;
1010
1009
};
1011
1010
1012
- void * mlx5_get_protocol_dev (struct mlx5_core_dev * mdev , int protocol );
1013
1011
int mlx5_register_interface (struct mlx5_interface * intf );
1014
1012
void mlx5_unregister_interface (struct mlx5_interface * intf );
1015
1013
int mlx5_notifier_register (struct mlx5_core_dev * dev , struct notifier_block * nb );
You can’t perform that action at this time.
0 commit comments