How to enable ECMP flow based forwarding ?

Ermal Luçi eri at freebsd.org
Wed Feb 15 17:49:32 UTC 2017


On Wed, Feb 15, 2017 at 9:39 AM, Ermal Luçi <eri at freebsd.org> wrote:

>
>
> On Wed, Feb 15, 2017 at 9:32 AM, Olivier Cochard-Labbé <
> olivier at freebsd.org> wrote:
>
>> On Wed, Feb 15, 2017 at 6:17 PM, Ermal Luçi <eri at freebsd.org> wrote:
>>
>>>
>>>
>>>> Yeah but for 11 branch still is.
>>>
>>>
>>
>> ​FIB4 KPI was MFC to 11-stable branch 6 weeks ago (r310771).
>>
>
> I missed that and i created the patch on releng/11... i did not notice
> that it was merged to 11-stable.
>
> Seems only solution for this regression is to create some IPSEC policies
> than!
> Which should be filed as a bug against the tryforward implementation.
>
>
> Most probably this should be committed to on HEAD and merged back to avoid
broken behaviour until the new routing code can complement the feature.

-- 
Ermal
-------------- next part --------------
iff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c
index c0c6186..dff4cee 100644
--- a/sys/netinet/ip_fastfwd.c
+++ b/sys/netinet/ip_fastfwd.c
@@ -77,6 +77,7 @@
 __FBSDID("$FreeBSD$");
 
 #include "opt_ipstealth.h"
+#include "opt_mpath.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -163,6 +164,9 @@ ip_tryforward(struct mbuf *m)
        M_ASSERTVALID(m);
        M_ASSERTPKTHDR(m);
 
+#ifdef RADIX_MPATH
+       return m;
+#endif
 #ifdef ALTQ
        /*
         * Is packet dropped by traffic conditioner?



More information about the freebsd-net mailing list