diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-08-01 12:53:17 -0700 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-08-03 09:15:28 -0400 |
commit | 374819dd5873aee53e447ac3a761df036abd9f0a (patch) | |
tree | 43fad4bd931fb29191cc941320d6f900ebdec6b7 /src/vnet/buffer.h | |
parent | 78c70776340174a2e2c289f16c8c73395f9db289 (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.h | 6 |
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 |