<div>That's was the question behind the original question :-)</div><div> </div><div>As of today, FreeBSD 13 has the support for nexthops ( <a href="https://reviews.freebsd.org/D24232">https://reviews.freebsd.org/D24232</a> ) and nexthop groups ( <a href="https://reviews.freebsd.org/D26449">https://reviews.freebsd.org/D26449</a> ).</div><div> </div><div>Currently bird requires some changes to support multipath routing on *BSD: scan case in krt_read_route() assumes single nexthop and it's not extremely trivial to fix it.</div><div>I would like to see bird multipath work out-of-the-box on FreeBSD, and I'm wondering what's the best way to achieve it.</div><div> </div><div>I see the following options:</div><div>1) come up with a patch that supports the current model (RTM_ADD/RTM_DEL message for each multipath route) - that already works in frr.</div><div>2) come up with a patch that supports sending all nexthops inside a single gateway.</div><div> </div><div>Longer-term:</div><div>3) rtsock extension for creating nexthops / nhop groups and ability to specify nexthop/nexthop group as the gateway.</div><div>4) (longer-term) netlink support</div><div> </div><div> </div><div>I'm currently leaning towards (1), (3) that would lay the work towards supporting (4).</div><div>I can see (1) happening in a couple of weeks and (3) in a couple of months.</div><div>I'm happy to work with bird developers on choosing the approach / outlining the requirements.</div><div> </div><div> </div><div>03.10.2020, 15:37, "Maria Matějka" <maria.matejka@nic.cz>:</div><blockquote>Hello!<br /><br />Wow, you've decided to drop the old routing KPI. We were wondering when this is going to happen. Definitely a good idea, I must say.<br /><br />From the overview, the new KPI looks to be pretty similar to Linux nexthops, so it may be quite easy to implement this new KPI together with implementing Linux nexthops.<br /><br />Thank you for pointing it out, this is a very useful note from you.<br /><br />Maria<br /> <div>On October 3, 2020 3:28:41 PM GMT+02:00, Marek Zarychta <<a href="mailto:zarychtam@plan-b.pwste.edu.pl">zarychtam@plan-b.pwste.edu.pl</a>> wrote:<blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div>On 23.09.2020 07:10, Maria Matějka wrote:</div><blockquote>Hello!<br /><br />Yes, we definitely want to support it, yet last time when we were talking about it, it was still unstable. It is good news that it really has come in, we'll study it and most likely also implement it.<br /><br />Thank you for pointing this out.<br />Maria<br /> <div>On September 22, 2020 11:08:02 PM GMT+02:00, "Alexander V. Chernikov" <a href="mailto:melifaro@ipfw.ru"><melifaro@ipfw.ru></a> wrote:<blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><pre>Hi folks,

Cumulus people implemented nexthop objects/nexthop groups [1] in Linux kernel some time ago. These changes allow for more efficient communications between kernel and userspace w/ wide multipath & large amount of routes.

Initial support landed [2] in FRR in 2019 and has notably improved since then.
Are there any plans to support this functionality in bird?


[1]: <a href="https://linuxplumbersconf.org/event/4/contributions/434/attachments/251/436/nexthop-objects-talk.pdf">https://linuxplumbersconf.org/event/4/contributions/434/attachments/251/436/nexthop-objects-talk.pdf</a>
[2]: <a href="https://github.com/FRRouting/frr/commit/50d8965075cf59744dde685ae01400d9b7ee08a2#diff-33257ed1c568e6554134d48dc13332d1">https://github.com/FRRouting/frr/commit/50d8965075cf59744dde685ae01400d9b7ee08a2#diff-33257ed1c568e6554134d48dc13332d1</a>

/Alexander
</pre></blockquote></div><br />--<br />Sent from my Android device with K-9 Mail. Please excuse my brevity.</blockquote><p>Dear Programmers,</p><p>does it imply, that upcoming Linux nexthop objects/nexthop groups support in Bird will be automatically compatible also with just committed FreeBSD new routing kpi[1] ?</p><p>[1] <a href="https://reviews.freebsd.org/D24232">https://reviews.freebsd.org/D24232</a></p><pre>
 </pre><pre>-- 
Marek Zarychta</pre></blockquote></div><br />--<br />Sent from my Android device with K-9 Mail. Please excuse my brevity.</blockquote>