]> git.proxmox.com 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)
committerChristophe Gouault <christophe.gouault@6wind.com>
Mon, 21 Sep 2020 08:17:35 +0000 (10:17 +0200)
commit1eb92f06c4e39a47a82ae585cfb276497843de6c
tree17ee7490850320dc573b80d0668da464cec41526
parentd58b6f7568dab83e07fe144915b7c33e093a8abd
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