DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] table: fix exact match lookup
@ 2020-11-05 15:27 Cristian Dumitrescu
  2020-11-13 13:04 ` David Marchand
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Dumitrescu @ 2020-11-05 15:27 UTC (permalink / raw)
  To: dev; +Cc: david.marchand, churchill.khangar

Fix for the exact match lookup function.

Fixes: d0a00966618b ("table: add exact match SWX table")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
---
 lib/librte_table/rte_swx_table_em.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/librte_table/rte_swx_table_em.c b/lib/librte_table/rte_swx_table_em.c
index 85c77ad03..5f6722306 100644
--- a/lib/librte_table/rte_swx_table_em.c
+++ b/lib/librte_table/rte_swx_table_em.c
@@ -720,19 +720,19 @@ table_lookup(void *table,
 		uint32_t bkt_key_id;
 
 		bkt_sig0 = input_sig ^ bkt->sig[0];
-		if (bkt_sig0)
+		if (!bkt_sig0)
 			mask0 = 1 << 0;
 
 		bkt_sig1 = input_sig ^ bkt->sig[1];
-		if (bkt_sig1)
+		if (!bkt_sig1)
 			mask1 = 1 << 1;
 
 		bkt_sig2 = input_sig ^ bkt->sig[2];
-		if (bkt_sig2)
+		if (!bkt_sig2)
 			mask2 = 1 << 2;
 
 		bkt_sig3 = input_sig ^ bkt->sig[3];
-		if (bkt_sig3)
+		if (!bkt_sig3)
 			mask3 = 1 << 3;
 
 		mask_all = (mask0 | mask1) | (mask2 | mask3);
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] table: fix exact match lookup
  2020-11-05 15:27 [dpdk-dev] [PATCH] table: fix exact match lookup Cristian Dumitrescu
@ 2020-11-13 13:04 ` David Marchand
  0 siblings, 0 replies; 2+ messages in thread
From: David Marchand @ 2020-11-13 13:04 UTC (permalink / raw)
  To: Cristian Dumitrescu; +Cc: dev, Khangar, Churchill

On Thu, Nov 5, 2020 at 4:27 PM Cristian Dumitrescu
<cristian.dumitrescu@intel.com> wrote:
>
> Fix for the exact match lookup function.
>
> Fixes: d0a00966618b ("table: add exact match SWX table")
>
> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>

Applied, thanks.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-13 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05 15:27 [dpdk-dev] [PATCH] table: fix exact match lookup Cristian Dumitrescu
2020-11-13 13:04 ` David Marchand

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git