]> git.puffer.fish Git - mirror/frr.git/commit
vrf: VRF_DEFAULT must be 0, remove useless code
authorChristophe Gouault <christophe.gouault@6wind.com>
Mon, 24 Aug 2020 16:01:15 +0000 (18:01 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:25 +0000 (15:54 +0300)
commit4f55dee269c2ef5d0c59818c8cef27dc178ae0da
tree98d269a40c02a9472a8254cf42afbe07b958cfc8
parent2a04316814000fa62d8f51d8aaf6befef2cb0fb5
vrf: VRF_DEFAULT must be 0, remove useless code

Code was added in the past to support a value of VRF_DEFAULT different
from 0. This option was abandoned, the default vrf id is always 0.

Remove this code, this will simplify the code and improve performance
(use a constant value instead of a function that performs tests).

Signed-off-by: Christophe Gouault <christophe.gouault@6wind.com>
lib/netns_linux.c
lib/netns_other.c
lib/ns.h
lib/vrf.c
lib/vrf.h
zebra/zebra_netns_id.c
zebra/zebra_ns.c