net/mvpp2: check meter packet mode
authorLi Zhang <lizh@nvidia.com>
Tue, 13 Apr 2021 15:59:57 +0000 (18:59 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Apr 2021 16:40:58 +0000 (18:40 +0200)
commit784b83495bc5c40c5aa91d1e4d3966ec22e59e38
treeed3d3fe6b03fb7594287694f91e736b5c1801e73
parent12745a0a33059f8fb4b04fcf1b1c962cf1895e65
net/mvpp2: check meter packet mode

Currently meter algorithms only supports bytes per second(BPS).
Check packet_mode set to TRUE are rejected.

Signed-off-by: Li Zhang <lizh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Liron Himi <lironh@marvell.com>
drivers/net/mvpp2/mrvl_mtr.c