mailmap: add contributor to list
PATCH 1/2 mailmap: add contributor to list
Add contributer to mailmap.
--- .mailmap | 1 + 1 file changed, 1 insertion(+)
.mailmap +1 -0
@@ -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
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
--- app/test-flow-perf/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
app/test-flow-perf/main.c +6 -1
@@ -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
PATCH v2 1/2 mailmap: add contributor to list
In reply to Mohammad Iqbal AhmadAdd contributor to mailmap.
--- .mailmap | 1 + 1 file changed, 1 insertion(+)
.mailmap +1 -0
@@ -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
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
--- app/test-flow-perf/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
app/test-flow-perf/main.c +6 -1
@@ -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
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
@@ -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
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 listAdd contributor to mailmap.
Signed-off-by Mohammad Iqbal Ahmad <[email protected]>--- .mailmap | 1 + 1 file changed, 1 insertion(+).mailmap +1
-1@@ -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
PATCH v3 1/1 app/test-flow-perf: fix division or module by zero
In reply to Mohammad Iqbal AhmadFix division or module by zero reported by coverity scan. Updated .mailmap
Coverity issue: 373870
--- .mailmap | 1 + app/test-flow-perf/main.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-)
.mailmap +1 -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]> Mohammed Gamal <[email protected]> Mohsin Kazmi <[email protected]> Mohsin Mazhar Shaikh <[email protected]>
app/test-flow-perf/main.c +6 -1
@@ -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
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 zeroFix division or module by zero reported by coverity scan. Updated .mailmap
Coverity issue: 373870
Fixes bf3688f1e816 ("app/flow-perf: add insertion rate calculation")Signed-off-by Mohammad Iqbal Ahmad <[email protected]>--- .mailmap | 1 + app/test-flow-perf/main.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-).mailmap +0
-0@@ -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..0a542b0d87100644app/test-flow-perf/main.c +0
-0
BRs,
Wisam Jaddo
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]> MitMatelske <[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 :)
Wisam Monther
Acked-byRE: [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 zero20/02/2023 13:46, Wisam Monther:
Quoted 9 lines
Quoted 7 lines
.mailmap +0
-0@@ -912,6 +912,7 @@ Mitch Williams <[email protected]> MitMatelske <[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")Signed-off-by Mohammad Iqbal Ahmad <[email protected]>
Thomas Monjalon
AppliedRe: [PATCH v3 1/1] app/test-flow-perf: fix division or module by zero
In reply to Mohammad Iqbal Ahmad24/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")Signed-off-by Mohammad Iqbal Ahmad <[email protected]>---
app/test-flow-perf/main.c args_parse(int argc, char **argv) · line 856
Quoted 9 lines
app/test-flow-perf/main.c +6
-1if (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.
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
@@ -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
PATCH 1/1 examples/l3fwd: fix for coverity scan
In reply to Mohammad Iqbal AhmadThis patch fixes (Logically dead code) coverity issue. This patch also fixes (Uninitialized scalar variable) coverity issue.
Coverity issue: 381687
Coverity issue: 381686
--- examples/l3fwd/l3fwd_fib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
examples/l3fwd/l3fwd_fib.c +4 -4
@@ -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
RE: [PATCH v1] examples/l3fwd: fix for coverity scan
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: 381686Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")Signed-off-by Mohammad Iqbal Ahmad <[email protected]>
Re: [PATCH v1] examples/l3fwd: fix for coverity scan
In reply to Mohammad Iqbal Ahmad10/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: 381686Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")Signed-off-by Mohammad Iqbal Ahmad <[email protected]>
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.
Stephen Hemminger
Acked-byRe: [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: 381686Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")
Quoted 7 lines
Quoted 1 line
Signed-off-by Mohammad Iqbal Ahmad <[email protected]>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.
Thomas Monjalon
AppliedRe: [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: 381686Fixes 6a094e328598 ("examples/l3fwd: implement FIB lookup method")Quoted 7 lines
Quoted 1 line
Signed-off-by Mohammad Iqbal Ahmad <[email protected]>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 nexthopDon'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.