diff options
author | Neale Ranns <neale@graphiant.com> | 2021-10-12 07:49:37 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-10-12 16:55:08 +0000 |
commit | e8f57d593ea8bdfdff2e32562a520501b735f012 (patch) | |
tree | c0823a0ce10128e7ecc3dab29ad89b26cf7cc2c7 /src/vnet/ip/ip6_error.h | |
parent | 74a25859bd94910718a48cdb11841bc159b63c9c (diff) |
fib: fix the drop counter for ipv6 RPF failures
Type: fix
the only change to the mfib forwarding node is to set the error code, the rest is checkstyle formatting.
The traces previously showed some bogus reason:
00:04:27:325550: ip6-mfib-forward-rpf
entry 10 itf -1 flags
00:04:27:325551: ip6-drop
fib:0 adj:10 flow:0
UDP: fe80::b203:eaff:fe02:604 -> ff02::1:2
tos 0x00, flow label 0x651ed, hop limit 1, payload length 64
UDP: 546 -> 547
length 64, checksum 0xec9a
00:04:27:325551: error-drop
rx:GigabitEthernet6/0/0
00:04:27:325553: drop
ip6-input: drops due to concurrent reassemblies limit
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I294684c36edc346b4ebdd83ba66888b3b2197704
Diffstat (limited to 'src/vnet/ip/ip6_error.h')
-rw-r--r-- | src/vnet/ip/ip6_error.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/ip/ip6_error.h b/src/vnet/ip/ip6_error.h index a6fb16570b6..8546b4af8d3 100644 --- a/src/vnet/ip/ip6_error.h +++ b/src/vnet/ip/ip6_error.h @@ -40,6 +40,7 @@ #ifndef included_ip_ip6_error_h #define included_ip_ip6_error_h +// clang-format off #define foreach_ip6_error \ /* Must be first. */ \ _ (NONE, "valid ip6 packets") \ @@ -76,6 +77,9 @@ _ (OUTACL_TABLE_MISS, "output ACL table-miss drops") \ _ (OUTACL_SESSION_DENY, "output ACL session deny drops") \ \ + /* Errors from mfib-forward */ \ + _ (RPF_FAILURE, "Multicast RPF check failed") \ + \ /* Errors signalled by ip6-reassembly */ \ _ (REASS_MISSING_UPPER, "missing-upper layer drops") \ _ (REASS_DUPLICATE_FRAGMENT, "duplicate fragments") \ @@ -87,6 +91,8 @@ _ (REASS_INTERNAL_ERROR, "drops due to internal reassembly error") \ _ (REASS_UNSUPP_IP_PROTO, "unsupported ip protocol") +// clang-format on + typedef enum { #define _(sym,str) IP6_ERROR_##sym, |