From: Hongbo Zheng Date: Wed, 21 Apr 2021 03:53:39 +0000 (+0800) Subject: examples/l3fwd-power: fix empty poll thresholds X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=db7447c70820391f1225be0e6de6dab5710e6f18;p=dpdk.git examples/l3fwd-power: fix empty poll thresholds Fix assignment errors of ep_hgh_edpi in function parse_ep_config. Fixes: a137d012a0dd ("examples/l3fwd-power: support traffic pattern aware control") Cc: stable@dpdk.org Signed-off-by: Hongbo Zheng Signed-off-by: Min Hu (Connor) Reviewed-by: Reshma Pattan Acked-by: David Hunt --- diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 0af8810697..f8dfed1634 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -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 {