DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] event/cnxk: fix incorrect mask length
@ 2022-03-01 22:53 pbhagavatula
  2022-03-01 22:53 ` [PATCH 2/2] event/cnxk: fix incorrect Rx adapter config checks pbhagavatula
  2022-03-03  6:50 ` [PATCH 1/2] event/cnxk: fix incorrect mask length Jerin Jacob
  0 siblings, 2 replies; 3+ messages in thread
From: pbhagavatula @ 2022-03-01 22:53 UTC (permalink / raw)
  To: jerinj, Pavan Nikhilesh, Shijith Thotton; +Cc: dev

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Fix incorrect mask used when clearing subevent type masking out
useful data.

Fixes: e239e0d3faf7 ("event/cnxk: add SSO HW device operations")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 drivers/event/cnxk/cnxk_eventdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/event/cnxk/cnxk_eventdev.h b/drivers/event/cnxk/cnxk_eventdev.h
index b157fef096..5564746e6d 100644
--- a/drivers/event/cnxk/cnxk_eventdev.h
+++ b/drivers/event/cnxk/cnxk_eventdev.h
@@ -43,7 +43,7 @@
 #define CNXK_TT_FROM_EVENT(x)	    (((x) >> 38) & SSO_TT_EMPTY)
 #define CNXK_EVENT_TYPE_FROM_TAG(x) (((x) >> 28) & 0xf)
 #define CNXK_SUB_EVENT_FROM_TAG(x)  (((x) >> 20) & 0xff)
-#define CNXK_CLR_SUB_EVENT(x)	    (~(0xffu << 20) & x)
+#define CNXK_CLR_SUB_EVENT(x)	    (~(0xffull << 20) & x)
 #define CNXK_GRP_FROM_TAG(x)	    (((x) >> 36) & 0x3ff)
 #define CNXK_SWTAG_PEND(x)	    (BIT_ULL(62) & x)
 #define CNXK_TAG_IS_HEAD(x)	    (BIT_ULL(35) & x)
-- 
2.17.1


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

end of thread, other threads:[~2022-03-03  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 22:53 [PATCH 1/2] event/cnxk: fix incorrect mask length pbhagavatula
2022-03-01 22:53 ` [PATCH 2/2] event/cnxk: fix incorrect Rx adapter config checks pbhagavatula
2022-03-03  6:50 ` [PATCH 1/2] event/cnxk: fix incorrect mask length Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).