pkt_sched: act_police: Fix a rate estimator test.
authorJarek Poplawski <jarkao2@gmail.com>
Thu, 5 Mar 2009 01:38:10 +0000 (17:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2009 01:38:10 +0000 (17:38 -0800)
commita883bf564ea555447a76682bb2d8d4bc92e23e0e
tree211994ddc25999320fe47d2a58ba8105e00dfee7
parent9f8ac0b7b063be77f0de7a27fe5e6a0aa2cce58d
pkt_sched: act_police: Fix a rate estimator test.

A commit c1b56878fb68e9c14070939ea4537ad4db79ffae "tc: policing requires
a rate estimator" introduced a test which invalidates previously working
configs, based on examples from iproute2: doc/actions/actions-general.
This is too rigorous: a rate estimator is needed only when police's
"avrate" option is used.

Reported-by: Joao Correia <joaomiguelcorreia@gmail.com>
Diagnosed-by: John Dykstra <john.dykstra1@gmail.com>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_police.c