Skip to contentSkip to conversation

rte_swx: fix typo

PATCH In review Thierry Herbelot 3 participants 18 messages May 24, 2021 – Jul 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rte_swx: fix typo

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>
---
 lib/table/rte_swx_table_em.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/table/rte_swx_table_em.c +1 -1
index 788e25f6b912..03b28c4c9da0 100644
@@ -280,7 +280,7 @@ table_key_data(struct table *t, uint32_t key_id)
 static inline int
 bkt_is_empty(struct bucket_extension *bkt)
 {
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2]) ?
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3]) ?
 		1 : 0;
 }
 
Signature · 1 line
2.29.2
Acked-by on v1 1/1
#1 lore raw
Quoted 37 lines

-----Original Message-----
From: Thierry Herbelot <[email protected]>
Sent: Monday, May 24, 2021 9:54 AM
To: [email protected]
Cc: Thierry Herbelot <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]; Dumitrescu, Cristian <[email protected]>
Subject: [PATCH] rte_swx: fix typo

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>
---
 lib/table/rte_swx_table_em.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/table/rte_swx_table_em.c +0 -1
index 788e25f6b912..03b28c4c9da0 100644
@@ -280,7 +280,7 @@ table_key_data(struct table *t, uint32_t key_id)
 static inline int
 bkt_is_empty(struct bucket_extension *bkt)
 {
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])

?

lib/table/rte_swx_table_em.c +1 -0
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])

?
1 : 0;
}

Quoted 2 lines

--
2.29.2

Thanks very much, Thierry!

It would be great though if we could send a V2 with "table" instead of "rte_swx" in the title:
[PATCH] table: fix typo

#2 lore raw

PATCH v2 1/1 table: fix typo

In reply to Thierry Herbelot

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

--
V2: reword patch title

---
 lib/table/rte_swx_table_em.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/table/rte_swx_table_em.c +1 -1
index 788e25f6b912..03b28c4c9da0 100644
@@ -280,7 +280,7 @@ table_key_data(struct table *t, uint32_t key_id)
 static inline int
 bkt_is_empty(struct bucket_extension *bkt)
 {
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2]) ?
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3]) ?
 		1 : 0;
 }
 
Signature · 1 line
2.29.2
Acked-by on v2 1/1
#3 lore raw

Re: [dpdk-dev] [PATCH v2] table: fix typo

Quoted 39 lines

-----Original Message-----
From: Thierry Herbelot <[email protected]>
Sent: Monday, May 24, 2021 12:29 PM
To: [email protected]
Cc: Thierry Herbelot <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]; Dumitrescu, Cristian <[email protected]>
Subject: [PATCH v2] table: fix typo

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

--
V2: reword patch title

---
 lib/table/rte_swx_table_em.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/table/rte_swx_table_em.c +0 -1
index 788e25f6b912..03b28c4c9da0 100644
@@ -280,7 +280,7 @@ table_key_data(struct table *t, uint32_t key_id)
 static inline int
 bkt_is_empty(struct bucket_extension *bkt)
 {
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])

?

lib/table/rte_swx_table_em.c +1 -0
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])

?
1 : 0;
}

Quoted 2 lines

--
2.29.2

Thierry, thanks again, you could have actually added my ack from V1 :)

#4 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 7 lines
Quoted 7 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

[...]

Quoted 6 lines

Review

Quoted 2 lines
(quoted diff) +1 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])

Thierry, thanks again, you could have actually added my ack from V1 :)

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

#5 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 13 lines · Thomas Monjalon
Quoted 7 lines
Quoted 7 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

[...]

Quoted 5 lines

Review

Quoted 2 lines
(quoted diff) +1 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])
Quoted 6 lines
Quoted 1 line

Thierry, thanks again, you could have actually added my ack from V1 :)

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

table: check a bucket is empty for all bucket keys

Thierry

Quoted 2 lines
Signature · 9 lines
Thierry Herbelot
Senior Software Engineer
Tel: +33 1 39 30 92 61
http://www.6wind.com/

Follow us:
https://www.linkedin.com/company/6wind/
https://twitter.com/6WINDsoftware
https://www.youtube.com/user/6windsoftware
#6 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 26 lines

-----Original Message-----
From: Thierry Herbelot <[email protected]>
Sent: Thursday, June 17, 2021 8:12 AM
To: Thomas Monjalon <[email protected]>; Dumitrescu, Cristian <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH v2] table: fix typo

Quoted 15 lines · Thomas Monjalon
Quoted 7 lines
Quoted 7 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

[...]

Quoted 6 lines

Review

Quoted 2 lines
(quoted diff) +1 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])

Thierry, thanks again, you could have actually added my ack from V1 :)

Quoted 9 lines
Quoted 4 lines

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

table: check a bucket is empty for all bucket keys

Thierry

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch with the title updated. Is this OK with you?

Thanks,
Cristian

Quoted 13 lines
Quoted 2 lines

--
Thierry Herbelot
Senior Software Engineer
Tel: +33 1 39 30 92 61
http://www.6wind.com/

Follow us:
https://www.linkedin.com/company/6wind/
https://twitter.com/6WINDsoftware
https://www.youtube.com/user/6windsoftware

#7 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 31 lines · Cristian
Quoted 31 lines

-----Original Message-----
From: Thierry Herbelot <[email protected]>
Sent: Thursday, June 17, 2021 8:12 AM
To: Thomas Monjalon <[email protected]>; Dumitrescu, Cristian <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH v2] table: fix typo

Quoted 19 lines · Thomas Monjalon
Quoted 7 lines
Quoted 7 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

[...]

Quoted 6 lines

Review

Quoted 2 lines
(quoted diff) +1 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])

Thierry, thanks again, you could have actually added my ack from V1 :)

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

Quoted 9 lines
Quoted 4 lines

table: check a bucket is empty for all bucket keys

Thierry

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch with the title updated. Is this OK with you?

Hello Cristian

Sure !

What do you think of this title:

"table: check a bucket is empty for all bucket keys"

Best regards

Thierry

Quoted 16 lines

Thanks,
Cristian

Quoted 13 lines
Quoted 2 lines

--
Thierry Herbelot
Senior Software Engineer
Tel: +33 1 39 30 92 61
http://www.6wind.com/

Follow us:
https://www.linkedin.com/company/6wind/
https://twitter.com/6WINDsoftware
https://www.youtube.com/user/6windsoftware

Signature · 9 lines
Thierry Herbelot
Senior Software Engineer
Tel: +33 1 39 30 92 61
http://www.6wind.com/

Follow us:
https://www.linkedin.com/company/6wind/
https://twitter.com/6WINDsoftware
https://www.youtube.com/user/6windsoftware
#8 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

21/06/2021 17:54, Thierry Herbelot:

Quoted 23 lines · Cristian
Quoted 22 lines

From: Thierry Herbelot <[email protected]>

Quoted 21 lines · Thomas Monjalon
Quoted 19 lines
Quoted 7 lines
Quoted 7 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

[...]

Quoted 6 lines

Review

Quoted 2 lines
(quoted diff) +1 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])

Thierry, thanks again, you could have actually added my ack from V1 :)

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

table: check a bucket is empty for all bucket keys

Thierry

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch with the title updated. Is this OK with you?

No need to send a v3.

Quoted 8 lines

Hello Cristian

Sure !

What do you think of this title:

"table: check a bucket is empty for all bucket keys"

This title suggests it was not the intent before. It should say that it fixes this check,
or better, name the area of the API which is fixed.

#9 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 42 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Monday, June 21, 2021 5:15 PM
To: Dumitrescu, Cristian <[email protected]>; Thierry Herbelot <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH v2] table: fix typo

21/06/2021 17:54, Thierry Herbelot:

Quoted 9 lines · Cristian
Quoted 8 lines

From: Thierry Herbelot <[email protected]>

Quoted 7 lines · Thomas Monjalon
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>
Quoted 10 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

[...]

Quoted 1 line

Review

Quoted 1 line
(quoted diff) +0 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt-

sig[2])

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt-

sig[3])

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Thierry, thanks again, you could have actually added my ack from V1

:)

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

table: check a bucket is empty for all bucket keys

Thierry

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch with

the title updated. Is this OK with you?

No need to send a v3.

Quoted 1 line

OK, so you're going to fix the title while applying? Thanks, Thomas.

Quoted 12 lines
Quoted 7 lines

Hello Cristian

Sure !

What do you think of this title:

"table: check a bucket is empty for all bucket keys"

This title suggests it was not the intent before. It should say that it fixes this check,
or better, name the area of the API which is fixed.

#10 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 54 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Dumitrescu, Cristian
Sent: Monday, June 21, 2021 5:56 PM
To: Thomas Monjalon <[email protected]>; Thierry Herbelot <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 42 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Monday, June 21, 2021 5:15 PM
To: Dumitrescu, Cristian <[email protected]>; Thierry Herbelot <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH v2] table: fix typo

21/06/2021 17:54, Thierry Herbelot:

Quoted 9 lines · Cristian
Quoted 8 lines

From: Thierry Herbelot <[email protected]>

Quoted 7 lines · Thomas Monjalon
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>
Quoted 10 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

[...]

Quoted 1 line

Review

Quoted 1 line
(quoted diff) +0 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt-

sig[2])

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt-

sig[3])

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Thierry, thanks again, you could have actually added my ack from V1

:)

Quoted 13 lines
Quoted 13 lines
Quoted 10 lines
Quoted 5 lines

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

table: check a bucket is empty for all bucket keys

Thierry

Hi Thierry,

Quoted 9 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

I think Thomas is asking for you to send a new version of this patch with

the title updated. Is this OK with you?

No need to send a v3.

Quoted 1 line

OK, so you're going to fix the title while applying? Thanks, Thomas.

Hi Thomas,

I see this fix is not yet applied, is there any action required?

Thanks,
Cristian

Quoted 12 lines
Quoted 12 lines
Quoted 7 lines

Hello Cristian

Sure !

What do you think of this title:

"table: check a bucket is empty for all bucket keys"

This title suggests it was not the intent before. It should say that it fixes this check,
or better, name the area of the API which is fixed.

#11 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

29/06/2021 13:35, Dumitrescu, Cristian:

Quoted 39 lines

From: dev <[email protected]> On Behalf Of Dumitrescu, Cristian

Quoted 38 lines

From: Thomas Monjalon <[email protected]>

Quoted 37 lines

21/06/2021 17:54, Thierry Herbelot:

Quoted 9 lines · Cristian
Quoted 8 lines

From: Thierry Herbelot <[email protected]>

Quoted 7 lines · Thomas Monjalon
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>
Quoted 10 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

[...]

Quoted 1 line

Review

Quoted 1 line
(quoted diff) +0 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt-

sig[2])

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt-

sig[3])

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Thierry, thanks again, you could have actually added my ack from V1

:)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

table: check a bucket is empty for all bucket keys

Thierry

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch with

the title updated. Is this OK with you?

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

No need to send a v3.

OK, so you're going to fix the title while applying? Thanks, Thomas.

Hi Thomas,

I see this fix is not yet applied, is there any action required?

The proposed title is not fantastic. Last one is:
table: all keys must be checked to declare that a bucket is empty

I just need a title showing what is fixed.
What is the impact of the bug in bkt_is_empty()?

#12 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 60 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, June 29, 2021 2:41 PM
To: Dumitrescu, Cristian <[email protected]>; Thierry Herbelot <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH v2] table: fix typo

29/06/2021 13:35, Dumitrescu, Cristian:

Quoted 13 lines

From: dev <[email protected]> On Behalf Of Dumitrescu, Cristian

Quoted 12 lines

From: Thomas Monjalon <[email protected]>

Quoted 11 lines

21/06/2021 17:54, Thierry Herbelot:

Quoted 10 lines · Cristian
Quoted 9 lines

From: Thierry Herbelot <[email protected]>

Quoted 8 lines · Thomas Monjalon
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>
Signed-off-by Thierry Herbelot

<[email protected]>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

[...]

Quoted 1 line

Review

Quoted 1 line
(quoted diff) +0 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt-

sig[2])

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2]

&& !bkt-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

sig[3])

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Thierry, thanks again, you could have actually added my ack

from V1

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

:)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

table: check a bucket is empty for all bucket keys

Thierry

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch

with

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

the title updated. Is this OK with you?

No need to send a v3.

OK, so you're going to fix the title while applying? Thanks, Thomas.

Hi Thomas,

Quoted 8 lines
Quoted 1 line

I see this fix is not yet applied, is there any action required?

The proposed title is not fantastic. Last one is:
table: all keys must be checked to declare that a bucket is empty

I just need a title showing what is fixed.
What is the impact of the bug in bkt_is_empty()?

Hi Thomas,

How about this one:

table: fix bucket empty logic

Due to a typo, only 3 our of 4 keys in the bucket of the exact match table were considered, which can result in valid keys being incorrectly dropped from the table.

Regards,
Cristian

#13 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

Quoted 26 lines
Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch

with

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

the title updated. Is this OK with you?

No need to send a v3.

OK, so you're going to fix the title while applying? Thanks, Thomas.

Hi Thomas,

Quoted 8 lines
Quoted 1 line

I see this fix is not yet applied, is there any action required?

The proposed title is not fantastic. Last one is:
table: all keys must be checked to declare that a bucket is empty

I just need a title showing what is fixed.
What is the impact of the bug in bkt_is_empty()?

Hi Thomas,

How about this one:

Quoted 8 lines

table: fix bucket empty logic

Due to a typo, only 3 our of 4 keys in the bucket of the exact match
table were considered, which can result in valid keys being incorrectly dropped from the table.

Regards,
Cristian

Hi Thomas,

Ping,

#14 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] table: fix typo

In reply to Thomas Monjalon
Quoted 39 lines · Thomas Monjalon

21/06/2021 17:54, Thierry Herbelot:

Quoted 23 lines · Cristian
Quoted 22 lines

From: Thierry Herbelot <[email protected]>

Quoted 21 lines · Thomas Monjalon
Quoted 19 lines
Quoted 7 lines
Quoted 7 lines

Check Bucket key for all possible indices.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

[...]

Quoted 6 lines

Review

Quoted 2 lines
(quoted diff) +1 -1
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2])
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3])

Thierry, thanks again, you could have actually added my ack from V1 :)

The root cause looks to be a typo indeed,
but the impact or the scope of the issue
should stated in few words in the title please.
No need to send a v3, please suggest a title and I will apply.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

table: check a bucket is empty for all bucket keys

Thierry

Hi Thierry,

I think Thomas is asking for you to send a new version of this patch with the title updated. Is this OK with you?

No need to send a v3.

Quoted 5 lines

Hello Cristian

Sure !

Quoted 7 lines
Quoted 3 lines

What do you think of this title:

"table: check a bucket is empty for all bucket keys"

This title suggests it was not the intent before. It should say that it fixes this check,
or better, name the area of the API which is fixed.

"table: all keys must be checked to declare that a bucket is empty"

Quoted 2 lines
Signature · 9 lines
Thierry Herbelot
Senior Software Engineer
Tel: +33 1 39 30 92 61
http://www.6wind.com/

Follow us:
https://www.linkedin.com/company/6wind/
https://twitter.com/6WINDsoftware
https://www.youtube.com/user/6windsoftware
#15 lore raw

PATCH v3 1/1 table: fix bucket empty logic

In reply to Thierry Herbelot

Due to a typo, only 3 out of 4 keys in the bucket of the exact match table were considered, which can result in valid keys being incorrectly dropped from the table.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

--
V3: reword commit log
V2: reword patch title

---
 lib/table/rte_swx_table_em.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/table/rte_swx_table_em.c +1 -1
index 788e25f6b912..03b28c4c9da0 100644
@@ -280,7 +280,7 @@ table_key_data(struct table *t, uint32_t key_id)
 static inline int
 bkt_is_empty(struct bucket_extension *bkt)
 {
-	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[2]) ?
+	return (!bkt->sig[0] && !bkt->sig[1] && !bkt->sig[2] && !bkt->sig[3]) ?
 		1 : 0;
 }
 
Signature · 1 line
2.29.2
Acked-by on v3 1/1
#16 lore raw

Re: [dpdk-dev] [PATCH V3] table: fix bucket empty logic

Quoted 19 lines

-----Original Message-----
From: Thierry Herbelot <[email protected]>
Sent: Wednesday, July 7, 2021 12:19 PM
To: [email protected]
Cc: Thierry Herbelot <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]; Dumitrescu, Cristian <[email protected]>
Subject: [PATCH V3] table: fix bucket empty logic

Due to a typo, only 3 out of 4 keys in the bucket of the exact match table were considered, which can result in valid keys being incorrectly dropped from the table.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>
Quoted 8 lines

--
V3: reword commit log
V2: reword patch title

---
 lib/table/rte_swx_table_em.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#17 lore raw

Re: [dpdk-dev] [PATCH V3] table: fix bucket empty logic

Quoted 11 lines
Quoted 9 lines

Due to a typo, only 3 out of 4 keys in the bucket of the exact match table were considered, which can result in valid keys being incorrectly dropped from the table.

Fixes d0a00966618ba ("table: add exact match SWX table")
Cc Cristian Dumitrescu <[email protected]>

Applied, thanks