]> git.puffer.fish Git - mirror/frr.git/commit
zebra: only track NHEs from the dataplane for ID usage
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 12 Oct 2020 21:37:14 +0000 (17:37 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 13 Oct 2020 15:23:57 +0000 (11:23 -0400)
commit475852b263083f8ab2efda85a74c6ac1f516c03c
tree94543ffe1e85fe003e9fb79a7ffa1a89e754aa49
parent5588801e7afce7f87ff66f9c3acb0ab284970df8
zebra: only track NHEs from the dataplane for ID usage

Let's just track the NHEs we get from the kernel(dplane) for
ID usage with internal routes. I tried to be smart originally
and allow them to be re-used internal to zebra but its proving
to cause more bugs than it's worth.

This doesn't break any functionality. It just means we won't
use NHEs we get from the kernel with our routes, we will create
new ones.

Decided this based on various bugs seen ith the lastest one
being on startup with this kernel state:

```
[root@alfred frr-2]# ip next ls
id 15 via 192.168.161.1 dev doof scope link proto zebra
id 17 group 15 proto zebra
[root@alfred frr-2]# ip ro show 3.3.3.1
3.3.3.1 nhid 17 via 192.168.161.1 dev doof
```

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c