summaryrefslogtreecommitdiffstats
path: root/src/vnet/dpo/mpls_label_dpo.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-12-06 00:45:33 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-12-06 19:40:06 +0000
commitf363ebd4e7cd60dada11daa0e61b64569a9e1cf6 (patch)
treef197d40542c46e7b4741d7d8fbfea3934c69ad72 /src/vnet/dpo/mpls_label_dpo.h
parent73e4f7965b7f6c0ff3c1217962f76ad586af6332 (diff)
Label stack size exceeded fix
Change-Id: Ibe2041d83e9b5be16801dc316bd472ae4f6e8c31 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/dpo/mpls_label_dpo.h')
-rw-r--r--src/vnet/dpo/mpls_label_dpo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vnet/dpo/mpls_label_dpo.h b/src/vnet/dpo/mpls_label_dpo.h
index e23f3d262ff..8494d26b495 100644
--- a/src/vnet/dpo/mpls_label_dpo.h
+++ b/src/vnet/dpo/mpls_label_dpo.h
@@ -20,6 +20,11 @@
#include <vnet/mpls/packet.h>
#include <vnet/dpo/dpo.h>
+
+/**
+ * Maximum number of labels in one DPO
+ */
+#define MPLS_LABEL_DPO_MAX_N_LABELS 12
/**
* A representation of an MPLS label for imposition in the data-path
*/
@@ -27,8 +32,9 @@ typedef struct mpls_label_dpo_t
{
/**
* The MPLS label header to impose. Outer most label first.
+ * Each DPO will occupy one cache line, stuff that many labels in.
*/
- mpls_unicast_header_t mld_hdr[8];
+ mpls_unicast_header_t mld_hdr[MPLS_LABEL_DPO_MAX_N_LABELS];
/**
* Next DPO in the graph