aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-03-26 20:38:53 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:28:14 -0400
commitfa0b2d1d2196dd46527a8d028797e2bca5930a92 (patch)
treef11350b07f1c66fa5b4e1604c618126d500dd0ae /net/core
parent2b44368307cd06c5614d7b53801f516c0654020b (diff)
[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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/fib_rules.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c
index 7ac602cc8c85..5824b2644f26 100644
--- a/net/core/fib_rules.c
+++ b/net/core/fib_rules.c
@@ -146,7 +146,9 @@ jumped:
146 rule = target; 146 rule = target;
147 goto jumped; 147 goto jumped;
148 } 148 }
149 } else 149 } else if (rule->action == FR_ACT_NOP)
150 continue;
151 else
150 err = ops->action(rule, fl, flags, arg); 152 err = ops->action(rule, fl, flags, arg);
151 153
152 if (err != -EAGAIN) { 154 if (err != -EAGAIN) {