|
@@ -572,7 +572,6 @@ int mlxsw_sp_acl_rulei_act_mirror(struct mlxsw_sp *mlxsw_sp,
|
|
|
struct net_device *out_dev)
|
|
|
{
|
|
|
struct mlxsw_sp_acl_block_binding *binding;
|
|
|
- struct mlxsw_sp_port *out_port;
|
|
|
struct mlxsw_sp_port *in_port;
|
|
|
|
|
|
if (!list_is_singular(&block->binding_list))
|
|
@@ -581,9 +580,6 @@ int mlxsw_sp_acl_rulei_act_mirror(struct mlxsw_sp *mlxsw_sp,
|
|
|
binding = list_first_entry(&block->binding_list,
|
|
|
struct mlxsw_sp_acl_block_binding, list);
|
|
|
in_port = binding->mlxsw_sp_port;
|
|
|
- out_port = netdev_priv(out_dev);
|
|
|
- if (out_port->mlxsw_sp != mlxsw_sp)
|
|
|
- return -EINVAL;
|
|
|
|
|
|
return mlxsw_afa_block_append_mirror(rulei->act_block,
|
|
|
in_port->local_port,
|