net/sched: cls_api: increase max_reclassify_loop
authorDavide Caratti <dcaratti@redhat.com>
Wed, 19 May 2021 13:17:21 +0000 (15:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 May 2021 20:10:24 +0000 (13:10 -0700)
commit05ff8435e50569a0a6b95e5ceaea43696e8827ab
treeb73493aa05464777f897edc7690e2119f8efd85a
parent7b16509b29e007d15b158aa52bea25b22faf7972
net/sched: cls_api: increase max_reclassify_loop

modern userspace applications, like OVN, can configure the TC datapath to
"recirculate" packets several times. If more than 4 "recirculation" rules
are configured, packets can be dropped by __tcf_classify().
Changing the maximum number of reclassifications (from 4 to 16) should be
sufficient to prevent drops in most use cases, and guard against loops at
the same time.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c