diff options
| author | Christophe Gouault <christophe.gouault@6wind.com> | 2020-08-26 16:26:49 +0200 |
|---|---|---|
| committer | Christophe Gouault <christophe.gouault@6wind.com> | 2020-09-21 10:07:56 +0200 |
| commit | 7c1119cb7a1c66028d5487ff66682383244f987d (patch) | |
| tree | b41faebe98e5456ba6a1cf4c19594d9aa0c95773 /python/makevars.py | |
| parent | 8277d4b79662bde0ee09781ebfd4d2826b13f4f5 (diff) | |
lib: optimize vrf_id_to_name(VRF_DEFAULT) case
vrf_id_to_name() looks up in a RB_TREE to find the VRF entry, then
reads the name.
Avoid it for VRF_DEFAULT, which always exists and for which the
translation is straightforward.
Signed-off-by: Christophe Gouault <christophe.gouault@6wind.com>
Diffstat (limited to 'python/makevars.py')
0 files changed, 0 insertions, 0 deletions
