aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/buffer.h
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-08-01 12:53:17 -0700
committerNeale Ranns <nranns@cisco.com>2018-08-03 09:15:28 -0400
commit374819dd5873aee53e447ac3a761df036abd9f0a (patch)
tree43fad4bd931fb29191cc941320d6f900ebdec6b7 /src/vnet/buffer.h
parent78c70776340174a2e2c289f16c8c73395f9db289 (diff)
loop counter to prevent infiinte number of look ups per-packet
Change-Id: I59235d11baac18785a4c90cdaf14e8f3ddf06dab Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/buffer.h')
-rw-r--r--src/vnet/buffer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/buffer.h b/src/vnet/buffer.h
index 9d45c7ee354..cbdd077a317 100644
--- a/src/vnet/buffer.h
+++ b/src/vnet/buffer.h
@@ -64,7 +64,8 @@
_(16, L4_HDR_OFFSET_VALID, 0) \
_(17, FLOW_REPORT, "flow-report") \
_(18, IS_DVR, "dvr") \
- _(19, QOS_DATA_VALID, 0)
+ _(19, QOS_DATA_VALID, 0) \
+ _(20, LOOP_COUNTER_VALID, 0)
#define VNET_BUFFER_FLAGS_VLAN_BITS \
(VNET_BUFFER_F_VLAN_1_DEEP | VNET_BUFFER_F_VLAN_2_DEEP)
@@ -372,7 +373,8 @@ typedef struct
u8 source;
} qos;
- u8 __unused[2];
+ u8 loop_counter;
+ u8 __unused[1];
/* Group Based Policy */
struct