git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
act_mirred: do not drop packets when fails to mirror it
[pandora-kernel.git]
/
net
/
sched
/
act_mirred.c
diff --git
a/net/sched/act_mirred.c
b/net/sched/act_mirred.c
index
fe81cc1
..
9c0fd0c
100644
(file)
--- a/
net/sched/act_mirred.c
+++ b/
net/sched/act_mirred.c
@@
-200,13
+200,12
@@
static int tcf_mirred(struct sk_buff *skb, const struct tc_action *a,
out:
if (err) {
m->tcf_qstats.overlimits++;
out:
if (err) {
m->tcf_qstats.overlimits++;
- /* should we be asking for packet to be dropped?
- * may make sense for redirect case only
- */
-
retval = TC_ACT_SHOT
;
- } else
{
+ if (m->tcfm_eaction != TCA_EGRESS_MIRROR)
+ retval = TC_ACT_SHOT;
+ else
+
retval = m->tcf_action
;
+ } else
retval = m->tcf_action;
retval = m->tcf_action;
- }
spin_unlock(&m->tcf_lock);
return retval;
spin_unlock(&m->tcf_lock);
return retval;