Page MenuHomeFreeBSD

D48446.diff
No OneTemporary

D48446.diff

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -274,7 +274,7 @@
#define IP_ALIGNED(m) ((((uintptr_t)(m)->m_data) & 0x3) == 0x2)
#define CACHE_PTR_INCREMENT (CACHE_LINE_SIZE / sizeof(void *))
-#define CACHE_PTR_NEXT(ptr) ((void *)(((uintptr_t)(ptr) + CACHE_LINE_SIZE - 1) & (CACHE_LINE_SIZE - 1)))
+#define CACHE_PTR_NEXT(ptr) ((void *)(roundup2(ptr, CACHE_LINE_SIZE)))
#define LINK_ACTIVE(ctx) ((ctx)->ifc_link_state == LINK_STATE_UP)
#define CTX_IS_VF(ctx) ((ctx)->ifc_sctx->isc_flags & IFLIB_IS_VF)

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 15, 8:08 AM (9 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15795667
Default Alt Text
D48446.diff (559 B)

Event Timeline