]> git.puffer.fish Git - matthieu/frr.git/commitdiff
linux: UAPI for MAC sync
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 25 Mar 2020 13:10:54 +0000 (06:10 -0700)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 5 Aug 2020 13:46:12 +0000 (06:46 -0700)
MAC entries rxed from an ES-peer need to be marked as static to prevent them
from being aged out. However, for static entries, we still need to track
local activity to independently (independent of BGP) establish that a host
is still attached to the ES.

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
include/linux/if_bridge.h
include/linux/neighbour.h

index fb79481cb2a627d3d9e326385846a08517db2025..50011d55ecc86a9661439487494f56bee2dc57ad 100644 (file)
@@ -293,4 +293,15 @@ struct br_mcast_stats {
        __u64 mcast_bytes[BR_MCAST_DIR_SIZE];
        __u64 mcast_packets[BR_MCAST_DIR_SIZE];
 };
+
+/* FDB notification bits for NDA_NOTIFY:
+ * - BR_FDB_NFY_STATIC - notify on activity/expire even for a static entry
+ * - BR_FDB_NFY_INACTIVE - mark as inactive to avoid double notification,
+ *                         used with BR_FDB_NFY_STATIC (kernel controlled)
+ */
+enum {
+       BR_FDB_NFY_STATIC,
+       BR_FDB_NFY_INACTIVE,
+       BR_FDB_NFY_MAX
+};
 #endif /* _UAPI_LINUX_IF_BRIDGE_H */
index eefcda8ca44e9c780017d45b6bc7e81af3029453..33c17af1cc7561f897c17c43d22c42a255bfb317 100644 (file)
@@ -30,6 +30,7 @@ enum {
        NDA_SRC_VNI,
        NDA_PROTOCOL,  /* Originator of entry */
        NDA_NH_ID,
+       NDA_NOTIFY,
        __NDA_MAX
 };