summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2020-03-25 06:10:54 -0700
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2020-08-05 06:46:12 -0700
commit0717831143ec348a8df5c8f69944209e8842a0db (patch)
tree479114cf9165ef9b695859b2f8dacba89420acc4 /include
parente75e57491b32bd848da8fb123c105ba104514b1c (diff)
linux: UAPI for MAC sync
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/if_bridge.h11
-rw-r--r--include/linux/neighbour.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h
index fb79481cb2..50011d55ec 100644
--- a/include/linux/if_bridge.h
+++ b/include/linux/if_bridge.h
@@ -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 */
diff --git a/include/linux/neighbour.h b/include/linux/neighbour.h
index eefcda8ca4..33c17af1cc 100644
--- a/include/linux/neighbour.h
+++ b/include/linux/neighbour.h
@@ -30,6 +30,7 @@ enum {
NDA_SRC_VNI,
NDA_PROTOCOL, /* Originator of entry */
NDA_NH_ID,
+ NDA_NOTIFY,
__NDA_MAX
};