1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* VxLAN common header.
3 * Copyright (C) 2016, 2017 Cumulus Networks, Inc.
13 /* EVPN MH DF election algorithm */
14 #define EVPN_MH_DF_ALG_SERVICE_CARVING 0
15 #define EVPN_MH_DF_ALG_HRW 1
16 #define EVPN_MH_DF_ALG_PREF 2
18 /* preference range for DF election */
19 #define EVPN_MH_DF_PREF_MIN 0
20 #define EVPN_MH_DF_PREF_DEFAULT 32767
21 #define EVPN_MH_DF_PREF_MAX 65535
23 /* VxLAN Network Identifier - 24-bit (RFC 7348) */
24 typedef uint32_t vni_t
;
25 #define VNI_MAX 16777215 /* (2^24 - 1) */
27 /* Flooding mechanisms for BUM packets. */
28 /* Currently supported mechanisms are head-end (ingress) replication
29 * (which is the default) and no flooding. Future options could be
30 * using PIM-SM, PIM-Bidir etc.
32 enum vxlan_flood_control
{
33 VXLAN_FLOOD_HEAD_END_REPL
= 0,
42 #endif /* __VXLAN_H__ */