diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-04-26 23:25:27 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-07-05 11:49:36 -0400 | 
| commit | 6a3ae11c9b1480966b22d4f9b67a40b76d96aa15 (patch) | |
| tree | c01ee9579924a91b3970c76ad412ac5e55a0ab20 /zebra/if_netlink.c | |
| parent | d6caf0dbd7bc9c516d178430ca571ac0c94df84d (diff) | |
zebra: Rename vrf_lookup_by_tableid to zebra_vrf_lookup..
Rename the vrf_lookup_by_id function to zebra_vrf_lookup_by_id
and move to zebra_vrf.c where it nominally belongs, as that
we need zebra specific data to find this vrf_id and as such
it does not belong in vrf.c
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index cd200d821d..cea47b4c30 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -325,7 +325,8 @@ static void netlink_vrf_change(struct nlmsghdr *h, struct rtattr *tb,  		if (!vrf_lookup_by_id((vrf_id_t)ifi->ifi_index)) {  			vrf_id_t exist_id; -			exist_id = vrf_lookup_by_table(nl_table_id, ns_id); +			exist_id = +				zebra_vrf_lookup_by_table(nl_table_id, ns_id);  			if (exist_id != VRF_DEFAULT) {  				vrf = vrf_lookup_by_id(exist_id);  | 
