44c5e8b
From f051229561a26ac79323ec84437992e6f54f8398 Mon Sep 17 00:00:00 2001
44c5e8b
From: Vincent Bernat <vincent@bernat.ch>
44c5e8b
Date: Thu, 12 Nov 2020 19:54:53 -0500
44c5e8b
Subject: [PATCH 4/5] lldp: increase statsTLVsUnrecognizedTotal on unknown TLV
44c5e8b
44c5e8b
Upstream commit:
44c5e8b
    commit 109bcd423cd560545ec7940d73a50c5584aebb0c
44c5e8b
    Author: Vincent Bernat <vincent@bernat.ch>
44c5e8b
    Date: Sat, 6 Apr 2019 21:17:25 +0200
44c5e8b
44c5e8b
    This was done for organization TLVs, but not for other TLVs.
44c5e8b
44c5e8b
    Fix https://github.com/vincentbernat/lldpd/issues/323
44c5e8b
44c5e8b
Fixes: be53a5c447c3 ("auto-attach: Initial support for Auto-Attach standard")
44c5e8b
Signed-off-by: Fabrizio D'Angelo <fdangelo@redhat.com>
44c5e8b
Acked-by: Aaron Conole <aconole@redhat.com>
44c5e8b
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
44c5e8b
---
44c5e8b
 lib/lldp/lldp.c | 1 +
44c5e8b
 1 file changed, 1 insertion(+)
44c5e8b
44c5e8b
diff --git a/lib/lldp/lldp.c b/lib/lldp/lldp.c
44c5e8b
index 628d0f863..e5755307f 100644
44c5e8b
--- a/lib/lldp/lldp.c
44c5e8b
+++ b/lib/lldp/lldp.c
44c5e8b
@@ -679,6 +679,7 @@ lldp_decode(struct lldpd *cfg OVS_UNUSED, char *frame, int s,
44c5e8b
             VLOG_WARN("unknown tlv (%d) received on %s",
44c5e8b
                       tlv_type,
44c5e8b
                       hardware->h_ifname);
44c5e8b
+            hardware->h_rx_unrecognized_cnt++;
44c5e8b
             goto malformed;
44c5e8b
         }
44c5e8b
         if (pos > tlv + tlv_size) {
44c5e8b
-- 
44c5e8b
2.28.0
44c5e8b