mlxsw: spectrum_flower: Disable learning and security lookup when redirecting
[linux-2.6-microblaze.git] / drivers / net / ethernet / mellanox / mlxsw / spectrum_flower.c
index af3f57d..9fd1ca0 100644 (file)
@@ -160,6 +160,16 @@ static int mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp,
                         */
                        rulei->egress_bind_blocker = 1;
 
+                       /* Ignore learning and security lookup as redirection
+                        * using ingress filters happens before the bridge.
+                        */
+                       err = mlxsw_sp_acl_rulei_act_ignore(mlxsw_sp, rulei,
+                                                           true, true);
+                       if (err) {
+                               NL_SET_ERR_MSG_MOD(extack, "Cannot append ignore action");
+                               return err;
+                       }
+
                        fid = mlxsw_sp_acl_dummy_fid(mlxsw_sp);
                        fid_index = mlxsw_sp_fid_index(fid);
                        err = mlxsw_sp_acl_rulei_act_fid_set(mlxsw_sp, rulei,