diff options
| author | Xiao Liang <shaw.leon@gmail.com> | 2022-02-22 17:22:45 +0800 |
|---|---|---|
| committer | Xiao Liang <shaw.leon@gmail.com> | 2022-06-10 17:12:48 +0800 |
| commit | 5609e70fb87a3b23b55629a33e5afb298974c142 (patch) | |
| tree | 38ec901a91ed7504a7be9154d804dce195888e34 /zebra/zebra_dplane.c | |
| parent | db6d4c8375f32c11336f9542b558640c5c5915f2 (diff) | |
lib, zebra, bgpd: Move route EVPN flag to nexthop
Multipath route may have mixed nexthops of EVPN and IP unicast. Move
EVPN flag to nexthop to support such cases.
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Diffstat (limited to 'zebra/zebra_dplane.c')
| -rw-r--r-- | zebra/zebra_dplane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 0da44e3c4e..bb03d33e99 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -2562,7 +2562,7 @@ int dplane_ctx_route_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op, } /* Check for available evpn encapsulations. */ - if (!CHECK_FLAG(re->flags, ZEBRA_FLAG_EVPN_ROUTE)) + if (!CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_EVPN)) continue; zl3vni = zl3vni_from_vrf(nexthop->vrf_id); |
