examples/l3fwd-power: fix assignment errors
PATCH 1/1 examples/l3fwd-power: fix assignment errors
From: HongBo Zheng <[email protected]>
Fix assignment errors of ep_hgh_edpi in function parse_ep_config.
--- examples/l3fwd-power/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
examples/l3fwd-power/main.c +2 -2
@@ -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 {
Signature · 1 line
2.7.4
Ping for review please.
21/04/2021 05:53, Min Hu (Connor):
Quoted 36 lines
From: HongBo Zheng <[email protected]>
Fix assignment errors of
ep_hgh_edpiin functionparse_ep_config.Fixes a137d012a0dd ("examples/l3fwd-power: support traffic pattern aware control")Signed-off-by HongBo Zheng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>--- examples/l3fwd-power/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)examples/l3fwd-power/main.c +2
-2@@ -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 {
Pattan, Reshma
Reviewed-by Reshma PattanQuoted 6 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Ping for review please.
<snip>
Quoted 4 lines
21/04/2021 05:53, Min Hu (Connor):
Quoted 3 lines
From: HongBo Zheng <[email protected]>
examples/l3fwd-power/main.c +1
-0+ ep_hgh_edpi =EMPTY_POLL_HGH_THRESHOLD ;
<snip>
Quoted 4 lines
examples/l3fwd-power/main.c parse_ep_config(const char *q_arg) · line 1775
Quoted 4 lines
examples/l3fwd-power/main.c +1
-0+if (hgh_edpi >0 ) ep_hgh_edpi = hgh_edpi;
Changes looks good to me.
Thanks,
Reshma
David Hunt
Acked-byQuoted 15 lines · Reshma
Quoted 5 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Ping for review please.<snip>
Quoted 4 lines
21/04/2021 05:53, Min Hu (Connor):
Quoted 3 lines
From: HongBo Zheng <[email protected]>
+
ep_hgh_edpi=EMPTY_POLL_HGH_THRESHOLD;<snip>
Quoted 3 lines
Quoted 3 lines
+ if (
hgh_edpi> 0)ep_hgh_edpi = hgh_edpi;
Quoted 7 lines
Changes looks good to me.
Reviewed-by Reshma Pattan <[email protected]>Thanks,
Reshma
+1
Thomas Monjalon
Applied13/05/2021 11:47, David Hunt:
Quoted 14 lines · Reshma
Quoted 13 lines
Quoted 4 lines
21/04/2021 05:53, Min Hu (Connor):
Quoted 3 lines
From: HongBo Zheng <[email protected]>
+
ep_hgh_edpi=EMPTY_POLL_HGH_THRESHOLD;<snip>
Quoted 3 lines
Quoted 3 lines
+ if (
hgh_edpi> 0)ep_hgh_edpi = hgh_edpi;Changes looks good to me.
Reviewed-by Reshma Pattan <[email protected]>
Quoted 7 lines
Quoted 2 lines
Thanks,
Reshma+1
Acked-by David Hunt <[email protected]>
Applied, thanks