net: sched: use counter to break reclassify loops
Seems all we want here is to avoid endless 'goto reclassify' loop. tc_classify_compat even resets this counter when something other than TC_ACT_RECLASSIFY is returned, so this skb-counter doesn't break hypothetical loops induced by something other than perpetual TC_ACT_RECLASSIFY return values. skb_act_clone is now identical to skb_clone, so just use that. Tested with following (bogus) filter: tc filter add dev eth0 parent ffff: \ protocol ip u32 match u32 0 0 police rate 10Kbit burst \ 64000 mtu 1500 action reclassify Acked-by:Daniel Borkmann <daniel@iogearbox.net> Signed-off-by:
Florian Westphal <fw@strlen.de> Acked-by:
Alexei Starovoitov <ast@plumgrid.com> Acked-by:
Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/tc-actions-env-rules.txt 0 additions, 4 deletionsDocumentation/networking/tc-actions-env-rules.txt
- include/net/sch_generic.h 0 additions, 15 deletionsinclude/net/sch_generic.h
- include/uapi/linux/pkt_cls.h 1 addition, 1 deletioninclude/uapi/linux/pkt_cls.h
- net/sched/act_mirred.c 1 addition, 1 deletionnet/sched/act_mirred.c
- net/sched/sch_api.c 3 additions, 9 deletionsnet/sched/sch_api.c
Loading
Please register or sign in to comment