examples/l3fwd-power: fix empty poll thresholds
Fix assignment errors of ep_hgh_edpi in function parse_ep_config.
Fixes: a137d012a0
("examples/l3fwd-power: support traffic pattern aware control")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Reshma Pattan <reshma.pattan@gmail.com>
Acked-by: David Hunt <david.hunt@intel.com>
This commit is contained in:
parent
947dff12bc
commit
db7447c708
@ -1748,7 +1748,7 @@ parse_ep_config(const char *q_arg)
|
||||
int hgh_edpi;
|
||||
|
||||
ep_med_edpi = EMPTY_POLL_MED_THRESHOLD;
|
||||
ep_hgh_edpi = EMPTY_POLL_MED_THRESHOLD;
|
||||
ep_hgh_edpi = EMPTY_POLL_HGH_THRESHOLD;
|
||||
|
||||
strlcpy(s, p, sizeof(s));
|
||||
|
||||
@ -1771,7 +1771,7 @@ parse_ep_config(const char *q_arg)
|
||||
if (med_edpi > 0)
|
||||
ep_med_edpi = med_edpi;
|
||||
|
||||
if (med_edpi > 0)
|
||||
if (hgh_edpi > 0)
|
||||
ep_hgh_edpi = hgh_edpi;
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user