[NET] fib_rules: Add no-operation action
The use of nop rules simplifies the usage of goto rules and adds more flexibility as they allow targets to remain while the actual content of the branches can change easly. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2b44368307
commit
fa0b2d1d21
@@ -146,7 +146,9 @@ jumped:
|
||||
rule = target;
|
||||
goto jumped;
|
||||
}
|
||||
} else
|
||||
} else if (rule->action == FR_ACT_NOP)
|
||||
continue;
|
||||
else
|
||||
err = ops->action(rule, fl, flags, arg);
|
||||
|
||||
if (err != -EAGAIN) {
|
||||
|
Reference in New Issue
Block a user