net/softnic: check meter packet mode
authorLi Zhang <lizh@nvidia.com>
Tue, 13 Apr 2021 15:59:56 +0000 (18:59 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Apr 2021 16:40:58 +0000 (18:40 +0200)
commit12745a0a33059f8fb4b04fcf1b1c962cf1895e65
tree5729dcac3e51065ffe93b81dfafce7194bd89a49
parentc5a3860f36902e1701817b0961bf99a5c96ede3a
net/softnic: 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: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
drivers/net/softnic/rte_eth_softnic_meter.c