summaryrefslogtreecommitdiffstats
path: root/vppinfra
diff options
context:
space:
mode:
authorDave Barach <dbarach@cisco.com>2016-03-15 10:21:54 +0100
committerDamjan Marion <damarion@cisco.com>2016-03-18 12:59:51 +0100
commitdbf19ca7f9b93a843503f9204afd0815f3ef8332 (patch)
tree61c37d487be23bbc98a3e8e7d5733231cded4149 /vppinfra
parent4ea4ecdda9dbc01f9776b63d3a91397b34e46f13 (diff)
Make adjacencies shareable
Change-Id: I620871ca715b751d2e487f37341b7118797c9176 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vppinfra')
-rw-r--r--vppinfra/vppinfra/clib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vppinfra/vppinfra/clib.h b/vppinfra/vppinfra/clib.h
index e043025a272..9e9a97789db 100644
--- a/vppinfra/vppinfra/clib.h
+++ b/vppinfra/vppinfra/clib.h
@@ -64,6 +64,8 @@
#define STRUCT_SIZE_OF(t,f) (sizeof (_STRUCT_FIELD (t, f)))
#define STRUCT_BITS_OF(t,f) (BITS (_STRUCT_FIELD (t, f)))
#define STRUCT_ARRAY_LEN(t,f) ARRAY_LEN (_STRUCT_FIELD (t, f))
+#define STRUCT_MARK(mark) u8 mark[0]
+#define STRUCT_MARK_PTR(v, f) &(v)->f
/* Stride in bytes between struct array elements. */
#define STRUCT_STRIDE_OF(t,f) \