Skip to content

Commit

Permalink
examples/l3fwd-power: fix empty poll thresholds
Browse files Browse the repository at this point in the history
Fix assignment errors of ep_hgh_edpi in function parse_ep_config.

Fixes: a137d01 ("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>
  • Loading branch information
Hongbo Zheng authored and tmonjalo committed May 19, 2021
1 parent 947dff1 commit db7447c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/l3fwd-power/main.c
Expand Up @@ -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));

Expand All @@ -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 {
Expand Down

0 comments on commit db7447c

Please sign in to comment.