summaryrefslogtreecommitdiffstats
path: root/src/vnet/buffer.h
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-08-01 12:53:17 -0700
committerDave Barach <openvpp@barachs.net>2018-08-03 11:49:39 +0000
commitce9e0b4d48705d693f4e03093e3f506bdecaf141 (patch)
treec7b59ffe466f8fce19fb2a536b16958a16efc9b9 /src/vnet/buffer.h
parent40f92469c6c1b7145ad752475350f71d752d8033 (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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/buffer.h b/src/vnet/buffer.h
index b4ce9c79c87..e4167eae6ae 100644
--- a/src/vnet/buffer.h
+++ b/src/vnet/buffer.h
@@ -51,6 +51,7 @@
_( 3, VLAN_2_DEEP, "vlan-2-deep") \
_( 4, VLAN_1_DEEP, "vlan-1-deep") \
_( 5, SPAN_CLONE, "span-clone") \
+ _( 6, LOOP_COUNTER_VALID, 0) \
_( 7, LOCALLY_ORIGINATED, "local") \
_( 8, IS_IP4, "ip4") \
_( 9, IS_IP6, "ip6") \
@@ -357,7 +358,8 @@ typedef struct
u8 source;
} qos;
- u8 __unused[2];
+ u8 loop_counter;
+ u8 __unused[1];
/* Group Based Policy */
struct