Skip to contentSkip to conversation

mailmap: add contributor to list

PATCH Superseded Mohammad Iqbal Ahmad 5 participants 17 messages Dec 18, 2022 – Jul 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mailmap: add contributor to list

Add contributer to mailmap.

---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)
.mailmap +1 -0
index 75884b6fe2..464164765f 100644
@@ -911,6 +911,7 @@ Mitch Williams <[email protected]>
 Mit Matelske <[email protected]>
 Mohamad Noor Alim Hussin <[email protected]>
 Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>
 Mohammed Gamal <[email protected]>
 Mohsin Kazmi <[email protected]>
 Mohsin Mazhar Shaikh <[email protected]>
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 app/test-flow-perf: fix division or module by zero

Fix division or module by zero reported by coverity scan.

Coverity issue: 373870

Fixes bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
---
 app/test-flow-perf/main.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
app/test-flow-perf/main.c +6 -1
index 4a9206803a..0a542b0d87 100644
@@ -848,7 +848,12 @@ args_parse(int argc, char **argv)
 			/* Control */
 			if (strcmp(lgopts[opt_idx].name,
 					"rules-batch") == 0) {
-				rules_batch = atoi(optarg);
+				n = atoi(optarg);
+				if (n > 0)
+					rules_batch = n;
+				else
+					rte_exit(EXIT_FAILURE,
+							"flow rules_batch should be > 0\n");
 			}
 			if (strcmp(lgopts[opt_idx].name,
 					"rules-count") == 0) {
Signature · 1 line
2.25.1
#2 lore raw

PATCH v2 1/2 mailmap: add contributor to list

In reply to Mohammad Iqbal Ahmad

Add contributor to mailmap.

---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)
.mailmap +1 -0
index 75884b6fe2..464164765f 100644
@@ -911,6 +911,7 @@ Mitch Williams <[email protected]>
 Mit Matelske <[email protected]>
 Mohamad Noor Alim Hussin <[email protected]>
 Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>
 Mohammed Gamal <[email protected]>
 Mohsin Kazmi <[email protected]>
 Mohsin Mazhar Shaikh <[email protected]>
Signature · 1 line
2.25.1
#3 lore raw

PATCH v2 2/2 app/test-flow-perf: fix division or module by zero

Fix division or module by zero reported by coverity scan.

Coverity issue: 373870

Fixes bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
---
 app/test-flow-perf/main.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
app/test-flow-perf/main.c +6 -1
index 4a9206803a..0a542b0d87 100644
@@ -848,7 +848,12 @@ args_parse(int argc, char **argv)
 			/* Control */
 			if (strcmp(lgopts[opt_idx].name,
 					"rules-batch") == 0) {
-				rules_batch = atoi(optarg);
+				n = atoi(optarg);
+				if (n > 0)
+					rules_batch = n;
+				else
+					rte_exit(EXIT_FAILURE,
+							"flow rules_batch should be > 0\n");
 			}
 			if (strcmp(lgopts[opt_idx].name,
 					"rules-count") == 0) {
Signature · 1 line
2.25.1
#4 lore raw
In reply to Mohammad Iqbal Ahmad

Hi,

Please provide comment for this patch.

Regards,
Mohammad Iqbal Ahmad

-----Original Message-----
From: Mohammad Iqbal Ahmad <[email protected]>
Sent: Monday, December 19, 2022 2:04 PM
To: [email protected]; Thomas Monjalon <[email protected]>
Cc: Jerin Jacob Kollanukkaran <[email protected]>; Sunil Kumar Kori <[email protected]>; Satha Koteswara Rao Kottidi <[email protected]>; Pavan Nikhilesh Bhagavatula <[email protected]>; Kiran Kumar Kokkilagadda <[email protected]>; Satheesh Paul Antonysamy <[email protected]>; Ashwin Sekhar T K <[email protected]>; Anoob Joseph <[email protected]>; Akhil Goyal <[email protected]>; Harman Kalra <[email protected]>; Nithin Kumar Dabilpuram <[email protected]>; Mohammad Iqbal Ahmad <[email protected]>
Subject: [PATCH v2 1/2] mailmap: add contributor to list

Add contributor to mailmap.

---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)
.mailmap +1 -1
index 75884b6fe2..464164765f 100644
@@ -911,6 +911,7 @@ Mitch Williams <[email protected]>  Mit Matelske <[email protected]>  Mohamad Noor Alim Hussin <[email protected]>
 Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>
 Mohammed Gamal <[email protected]>
 Mohsin Kazmi <[email protected]>  Mohsin Mazhar Shaikh <[email protected]>
--

2.25.1

#5 lore raw

23/01/2023 12:41, Mohammad Iqbal Ahmad:

Quoted 3 lines

Hi,

Please provide comment for this patch.

There is no comment except it should not be alone in a patch.
The preference is to update .mailmap with the first real changes in the same patch.

Quoted 26 lines

From: Mohammad Iqbal Ahmad <[email protected]>
Sent: Monday, December 19, 2022 2:04 PM
To: [email protected]; Thomas Monjalon <[email protected]>
Cc: Jerin Jacob Kollanukkaran <[email protected]>; Sunil Kumar Kori <[email protected]>; Satha Koteswara Rao Kottidi <[email protected]>; Pavan Nikhilesh Bhagavatula <[email protected]>; Kiran Kumar Kokkilagadda <[email protected]>; Satheesh Paul Antonysamy <[email protected]>; Ashwin Sekhar T K <[email protected]>; Anoob Joseph <[email protected]>; Akhil Goyal <[email protected]>; Harman Kalra <[email protected]>; Nithin Kumar Dabilpuram <[email protected]>; Mohammad Iqbal Ahmad <[email protected]>
Subject: [PATCH v2 1/2] mailmap: add contributor to list

Add contributor to mailmap.

---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)
.mailmap +1 -1
index 75884b6fe2..464164765f 100644
@@ -911,6 +911,7 @@ Mitch Williams <[email protected]>  Mit Matelske <[email protected]>  Mohamad Noor Alim Hussin <[email protected]>
 Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>
 Mohammed Gamal <[email protected]>
 Mohsin Kazmi <[email protected]>  Mohsin Mazhar Shaikh <[email protected]>
--

2.25.1

#6 lore raw

PATCH v3 1/1 app/test-flow-perf: fix division or module by zero

In reply to Mohammad Iqbal Ahmad

Fix division or module by zero reported by coverity scan. Updated .mailmap

Coverity issue: 373870

Fixes bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
---
 .mailmap                  | 1 +
 app/test-flow-perf/main.c | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
.mailmap +1 -0
index a153c9ab93..ec9f419f53 100644
@@ -912,6 +912,7 @@ Mitch Williams <[email protected]>
 Mit Matelske <[email protected]>
 Mohamad Noor Alim Hussin <[email protected]>
 Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>
 Mohammed Gamal <[email protected]>
 Mohsin Kazmi <[email protected]>
 Mohsin Mazhar Shaikh <[email protected]>
app/test-flow-perf/main.c +6 -1
index 4a9206803a..0a542b0d87 100644
@@ -848,7 +848,12 @@ args_parse(int argc, char **argv)
 			/* Control */
 			if (strcmp(lgopts[opt_idx].name,
 					"rules-batch") == 0) {
-				rules_batch = atoi(optarg);
+				n = atoi(optarg);
+				if (n > 0)
+					rules_batch = n;
+				else
+					rte_exit(EXIT_FAILURE,
+							"flow rules_batch should be > 0\n");
 			}
 			if (strcmp(lgopts[opt_idx].name,
 					"rules-count") == 0) {
Signature · 1 line
2.25.1
#7 lore raw

RE: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero

Hi,

Quoted 30 lines

-----Original Message-----
From: Mohammad Iqbal Ahmad <[email protected]>
Sent: Tuesday, January 24, 2023 12:38 PM
To: [email protected]; NBU-Contact-Thomas Monjalon (EXTERNAL) <[email protected]>; Wisam Monther <[email protected]>; Jack Min <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Mohammad Iqbal Ahmad <[email protected]>
Subject: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero

Fix division or module by zero reported by coverity scan. Updated .mailmap

Coverity issue: 373870

Fixes bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
---
 .mailmap                  | 1 +
 app/test-flow-perf/main.c | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
.mailmap +0 -0
index a153c9ab93..ec9f419f53 100644
@@ -912,6 +912,7 @@ Mitch Williams <[email protected]>  Mit
Quoted 4 lines

Matelske <[email protected]> Mohamad Noor Alim Hussin <[email protected]>
Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>

Why you added such change in flow-perf related patch?

app/test-flow-perf/main.c

Quoted 7 lines

Mohammed Gamal <[email protected]>
Mohsin Kazmi <[email protected]> Mohsin Mazhar Shaikh
<[email protected]>

app/test-flow-perf/main.c index renamed from app/test-flow-perf/main.c +0 -0

4a9206803a..0a542b0d87 100644

app/test-flow-perf/main.c +0 -0

BRs,
Wisam Jaddo

#8 lore raw

Re: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero

20/02/2023 13:46, Wisam Monther:

Quoted 9 lines
Quoted 7 lines
.mailmap +0 -0
@@ -912,6 +912,7 @@ Mitch Williams <[email protected]>  Mit

Matelske <[email protected]> Mohamad Noor Alim Hussin <[email protected]>
Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>

Why you added such change in flow-perf related patch?

That's because when it is your first patch, your name must be added. It is a new file. New rule :)

Acked-by
#9 lore raw

RE: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero

Quoted 25 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Monday, February 20, 2023 2:52 PM
To: Mohammad Iqbal Ahmad <[email protected]>; [email protected]; Jack Min <[email protected]>; Wisam Monther <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero

20/02/2023 13:46, Wisam Monther:

Quoted 9 lines
Quoted 7 lines
.mailmap +0 -0
@@ -912,6 +912,7 @@ Mitch Williams <[email protected]>  Mit

Matelske <[email protected]> Mohamad Noor Alim Hussin <[email protected]>
Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>

Why you added such change in flow-perf related patch?

Quoted 2 lines

That's because when it is your first patch, your name must be added. It is a new file. New rule :)

Sorry, first time hearing this 😊

Quoted 9 lines

Subject: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero

Fix division or module by zero reported by coverity scan. Updated .mailmap

Coverity issue: 373870

Fixes bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
#10 lore raw

Re: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero

In reply to Mohammad Iqbal Ahmad

24/01/2023 11:38, Mohammad Iqbal Ahmad:

Quoted 8 lines

Fix division or module by zero reported by coverity scan. Updated .mailmap

Coverity issue: 373870

Fixes bf3688f1e816 ("app/flow-perf: add insertion rate calculation")

---

app/test-flow-perf/main.c args_parse(int argc, char **argv) · line 856

Quoted 9 lines
app/test-flow-perf/main.c +6 -1
 			if (strcmp(lgopts[opt_idx].name,
 					"rules-batch") == 0) {
-				rules_batch = atoi(optarg);
+				n = atoi(optarg);
+				if (n > 0)
+					rules_batch = n;
+				else
+					rte_exit(EXIT_FAILURE,
+							"flow rules_batch should be > 0\n");

The option name is rules-batch (with a hyphen). Will fix while merging.

Applied, thanks.

#11 lore raw
In reply to Mohammad Iqbal Ahmad

Ping.

-----Original Message-----
From: Mohammad Iqbal Ahmad <[email protected]>
Sent: Friday, December 16, 2022 1:10 PM
To: [email protected]; Thomas Monjalon <[email protected]>
Cc: Jerin Jacob Kollanukkaran <[email protected]>; Sunil Kumar Kori <[email protected]>; Satha Koteswara Rao Kottidi <[email protected]>; Pavan Nikhilesh Bhagavatula <[email protected]>; Kiran Kumar Kokkilagadda <[email protected]>; Satheesh Paul Antonysamy <[email protected]>; Ashwin Sekhar T K <[email protected]>; Anoob Joseph <[email protected]>; Akhil Goyal <[email protected]>; Harman Kalra <[email protected]>; Nithin Kumar Dabilpuram <[email protected]>; Mohammad Iqbal Ahmad <[email protected]>
Subject: [PATCH v1 1/2] mailmap: add contributor to list

Add contributer to mailmap.

---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)
.mailmap +1 -1
index 75884b6fe2..464164765f 100644
@@ -911,6 +911,7 @@ Mitch Williams <[email protected]>  Mit Matelske <[email protected]>  Mohamad Noor Alim Hussin <[email protected]>
 Mohammad Abdul Awal <[email protected]>
+Mohammad Iqbal Ahmad <[email protected]>
 Mohammed Gamal <[email protected]>
 Mohsin Kazmi <[email protected]>  Mohsin Mazhar Shaikh <[email protected]>
--

2.25.1

#12 lore raw

PATCH 1/1 examples/l3fwd: fix for coverity scan

In reply to Mohammad Iqbal Ahmad

This patch fixes (Logically dead code) coverity issue. This patch also fixes (Uninitialized scalar variable) coverity issue.

Coverity issue: 381687
Coverity issue: 381686

Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")
---
 examples/l3fwd/l3fwd_fib.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
examples/l3fwd/l3fwd_fib.c +4 -4
index edc0dd69b9..18398492ae 100644
@@ -359,10 +359,10 @@ fib_event_loop(struct l3fwd_event_resources *evt_rsrc,
 				nh = (uint16_t)hopsv4[ipv4_arr_assem++];
 			else
 				nh = (uint16_t)hopsv6[ipv6_arr_assem++];
-			if (nh != FIB_DEFAULT_HOP)
-				hops[i] = nh != FIB_DEFAULT_HOP ?
-						  nh :
-						  events[i].mbuf->port;
+
+			hops[i] = nh != FIB_DEFAULT_HOP ?
+				  nh :
+				  events[i].mbuf->port;
 			process_packet(events[i].mbuf, &hops[i]);
 			events[i].mbuf->port = hops[i] != BAD_PORT ?
 						       hops[i] :
Signature · 1 line
2.25.1
#14 lore raw

Re: [PATCH v1] examples/l3fwd: fix for coverity scan

In reply to Mohammad Iqbal Ahmad

10/01/2023 15:56, Mohammad Iqbal Ahmad:

Quoted 8 lines

This patch fixes (Logically dead code) coverity issue. This patch also fixes (Uninitialized scalar variable) coverity issue.

Coverity issue: 381687
Coverity issue: 381686

Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")

It seems you removed "if (nh != FIB_DEFAULT_HOP)"

Please could you explain what was the issue
inside the commit message.
It could help to find a better title as well.

#15 lore raw

Re: [PATCH v1] examples/l3fwd: fix for coverity scan

Quoted 8 lines · On Wed, 01 Feb 2023 18:28:44 +0100 Thomas Monjalon <[email protected]> wrote:

10/01/2023 15:56, Mohammad Iqbal Ahmad:

Quoted 7 lines

This patch fixes (Logically dead code) coverity issue. This patch also fixes (Uninitialized scalar variable) coverity issue.

Coverity issue: 381687
Coverity issue: 381686

Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")
Quoted 7 lines
Quoted 1 line

It seems you removed "if (nh != FIB_DEFAULT_HOP)"

Please could you explain what was the issue
inside the commit message.
It could help to find a better title as well.

Coverity is spotting that the same condition is evaluated first in the if() then in the conditional expression. So yes it is a bug.

Would prefer the title of
examples/l3fwd: fix duplicate expression for default nexthop

Don't think the default nexthop was ever tested. If it was then hops[i] would have never been updated. Probably would just get previous value so it worked.

#16 lore raw

Re: [PATCH v1] examples/l3fwd: fix for coverity scan

06/07/2023 20:09, Stephen Hemminger:

Quoted 22 lines
Quoted 8 lines · On Wed, 01 Feb 2023 18:28:44 +0100 Thomas Monjalon <[email protected]> wrote:

10/01/2023 15:56, Mohammad Iqbal Ahmad:

Quoted 7 lines

This patch fixes (Logically dead code) coverity issue. This patch also fixes (Uninitialized scalar variable) coverity issue.

Coverity issue: 381687
Coverity issue: 381686

Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")
Quoted 7 lines
Quoted 1 line

It seems you removed "if (nh != FIB_DEFAULT_HOP)"

Please could you explain what was the issue
inside the commit message.
It could help to find a better title as well.

Coverity is spotting that the same condition is evaluated first in the if() then in the conditional expression. So yes it is a bug.

Quoted 8 lines

Would prefer the title of
examples/l3fwd: fix duplicate expression for default nexthop

Don't think the default nexthop was ever tested. If it was then hops[i] would have never been updated. Probably would just get previous value so it worked.

Applied, thanks.