git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb7f96
)
net/softnic: fix meter policies initialization
author
Dapeng Yu
<dapengx.yu@intel.com>
Thu, 29 Apr 2021 07:06:14 +0000
(15:06 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 29 Apr 2021 14:10:57 +0000
(16:10 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/net/softnic/rte_eth_softnic_meter.c
b/drivers/net/softnic/rte_eth_softnic_meter.c
index
acb8b87
..
5831892
100644
(file)
--- a/
drivers/net/softnic/rte_eth_softnic_meter.c
+++ b/
drivers/net/softnic/rte_eth_softnic_meter.c
@@
-17,6
+17,9
@@
softnic_mtr_init(struct pmd_internals *p)
/* Initialize meter profiles list */
TAILQ_INIT(&p->mtr.meter_profiles);
+ /* Initialize meter policies list */
+ TAILQ_INIT(&p->mtr.meter_policies);
+
/* Initialize MTR objects list */
TAILQ_INIT(&p->mtr.mtrs);