From owner-freebsd-net@freebsd.org Wed Feb 15 06:17:45 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E99FECE071F for ; Wed, 15 Feb 2017 06:17:45 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3p.cmail.yandex.net (forward3p.cmail.yandex.net [IPv6:2a02:6b8:0:1465::13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CB9C19FB; Wed, 15 Feb 2017 06:17:45 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp3j.mail.yandex.net (smtp3j.mail.yandex.net [95.108.130.68]) by forward3p.cmail.yandex.net (Yandex) with ESMTP id 12BF020FE0; Wed, 15 Feb 2017 09:17:32 +0300 (MSK) Received: from smtp3j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3j.mail.yandex.net (Yandex) with ESMTP id 9CAE06240FCA; Wed, 15 Feb 2017 09:17:27 +0300 (MSK) Received: by smtp3j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id i97u1N3cwL-HQcK7DIO; Wed, 15 Feb 2017 09:17:26 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1487139446; bh=gtn8nIKbAjqUqbuj4ErffJ75FRiW4doWNbvm0pmYrWc=; h=Subject:To:References:Cc:From:Message-ID:Date:In-Reply-To; b=stponw+LbX7DWLM302bKyDLahf1itW7vmfsGIayc8UaWJKZIBOqqiOI8srb7OOHme Q3077LbI4HpApoNiZx1AQNvWbiVuxV8ErijvodoJ2NJlsmzxfqBP45EU2Zbeyhi05K dR09iKtYJ0buVFkilPClopwNjQl26bYnTfkY3rx4= Authentication-Results: smtp3j.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0,1 0,1 0 Subject: Re: How to enable ECMP flow based forwarding ? To: =?UTF-8?Q?Ermal_Lu=c3=a7i?= References: <6162c934-3f22-889e-f45f-6f988342f4b3@yandex.ru> Cc: =?UTF-8?Q?Olivier_Cochard-Labb=c3=a9?= , "freebsd-net@freebsd.org" , "Alexander V. Chernikov" From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Message-ID: <3d53aad4-f005-659e-5939-579d67a185ab@yandex.ru> Date: Wed, 15 Feb 2017 09:15:45 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tOjg8Ce26hwko0QO3E01xSFcl7lQcWhui" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 06:17:46 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tOjg8Ce26hwko0QO3E01xSFcl7lQcWhui Content-Type: multipart/mixed; boundary="Vgu9nNQPDUhgItKGtEMbnFlvfcRsphjeL"; protected-headers="v1" From: "Andrey V. Elsukov" To: =?UTF-8?Q?Ermal_Lu=c3=a7i?= Cc: =?UTF-8?Q?Olivier_Cochard-Labb=c3=a9?= , "freebsd-net@freebsd.org" , "Alexander V. Chernikov" Message-ID: <3d53aad4-f005-659e-5939-579d67a185ab@yandex.ru> Subject: Re: How to enable ECMP flow based forwarding ? References: <6162c934-3f22-889e-f45f-6f988342f4b3@yandex.ru> In-Reply-To: --Vgu9nNQPDUhgItKGtEMbnFlvfcRsphjeL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 14.02.2017 22:52, Ermal Lu=C3=A7i wrote: > I think you need to implement some code first. The fastfwd has not > supported MPATH and tryforward also doesn't support it. For IPv4 yo= u can > try to add some IPsec security policy to disable ip_tryforward. In = this > case ip_forward() will be used, and it uses rtalloc_mpath_fib(), so= , > probably, it will work. >=20 > This seems to be a bug to file and which can quickly be fixed by > presenting same=20 > behaviour that slow path does when RADIX_MPATH is active. > =20 > It does not impact performance or any of the problems ip_tryforward() i= s > trying to > solve. >=20 > Try the attached patch it should fix your issues. ip_tryforward() was changed to FIB4 KPI and your path is not applicable anymore. --=20 WBR, Andrey V. Elsukov --Vgu9nNQPDUhgItKGtEMbnFlvfcRsphjeL-- --tOjg8Ce26hwko0QO3E01xSFcl7lQcWhui Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlij8hEACgkQAcXqBBDI oXrXbQf/V1370ujRd/Kv+9i0Fjd0YcGuhUbKsQjARbjtsyc/jbUS1ovWqCrSHLSK DrDuRqMlOxGV5iCSX1QJlFRz4KPXKKeTSlDCPdocqNd6QWF5CMI4eqeN3cyUu2Mw o+btSOxloiiJ7/cBmJ6TT+RkSmXNePGBSwGnvjqARw1+w1D7FrDDwXPHPSveGAcc p4JNRkgeyzxTh69tuXB5o86aCCrI3aVaH1t1ZZ+jOvNq/8n0pJni4e7IgUlKhOv5 oLbVmUwlINgszFwi9s21IohKPjHfkstjyZrnqiFGWItQN4CVVlO6tNPVvVSnOmRT nDjEjLJHAzQCH5G2+/BdZCP9Pnclzg== =ic1O -----END PGP SIGNATURE----- --tOjg8Ce26hwko0QO3E01xSFcl7lQcWhui--