Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Harmonize vec/pool_get_aligned object sizes and alignment requests
[vpp.git]
/
src
/
vnet
/
dpo
/
mpls_label_dpo.h
diff --git
a/src/vnet/dpo/mpls_label_dpo.h
b/src/vnet/dpo/mpls_label_dpo.h
index
98c88f7
..
4e032d3
100644
(file)
--- a/
src/vnet/dpo/mpls_label_dpo.h
+++ b/
src/vnet/dpo/mpls_label_dpo.h
@@
-66,6
+66,12
@@
extern u8* format_mpls_label_dpo_flags(u8 *s, va_list *args);
*/
typedef struct mpls_label_dpo_t
{
*/
typedef struct mpls_label_dpo_t
{
+ /**
+ * required for pool_get_aligned.
+ * memebers used in the switch path come first!
+ */
+ CLIB_CACHE_LINE_ALIGN_MARK(cacheline0);
+
/**
* The MPLS label header to impose. Outer most label first.
* Each DPO will occupy one cache line, stuff that many labels in.
/**
* The MPLS label header to impose. Outer most label first.
* Each DPO will occupy one cache line, stuff that many labels in.