net/softnic: fix meter policies initialization
authorDapeng Yu <dapengx.yu@intel.com>
Thu, 29 Apr 2021 07:06:14 +0000 (15:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 29 Apr 2021 14:10:57 +0000 (16:10 +0200)
commit9421152d7dcf951aae30c1b22c0c9c63875ff90a
tree07895d65f2e3c641ac6c236036e7b865aed6dd24
parentbcb7f96ca1f3ca92479e8fa8fbb0a283332d0f34
net/softnic: fix meter policies initialization

Initialize meter policy list before use to avoid segment fault

Fixes: 0d73ddf25faa ("net/softnic: add meter profile")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
drivers/net/softnic/rte_eth_softnic_meter.c