Skip to contentSkip to conversation

examples/l3fwd-power: fix assignment errors

PATCH Applied Min Hu (Connor) 4 participants 5 messages Apr 21, 2021 – May 19, 2021

lore
Share & tools
lore
#0 lore raw

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.

Fixes a137d012a0dd ("examples/l3fwd-power: support traffic pattern aware control")
---
 examples/l3fwd-power/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
examples/l3fwd-power/main.c +2 -2
index 0af8810..f8dfed1 100644
@@ -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
#1 lore raw

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_edpi in function parse_ep_config.

Fixes a137d012a0dd ("examples/l3fwd-power: support traffic pattern aware control")
---
 examples/l3fwd-power/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
examples/l3fwd-power/main.c +2 -2
index 0af8810..f8dfed1 100644
@@ -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 {
Reviewed-by Reshma Pattan
#2 lore raw
Quoted 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

Acked-by
#3 lore raw
Quoted 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.

Thanks,
Reshma

+1

#4 lore raw

13/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.

Quoted 7 lines
Quoted 2 lines

Thanks,
Reshma

+1

Applied, thanks