Cleanup -- remove unused pair_add_sub()
This commit is contained in:
@ -168,23 +168,6 @@ lcp_itf_pair_find_by_vif (u32 vif_index)
|
|||||||
return INDEX_INVALID;
|
return INDEX_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
lcp_itf_pair_add_sub (u32 vif, u8 *host_if_name, u32 sub_sw_if_index,
|
|
||||||
u32 phy_sw_if_index, u8 *ns)
|
|
||||||
{
|
|
||||||
lcp_itf_pair_t *lip;
|
|
||||||
|
|
||||||
lip = lcp_itf_pair_get (lcp_itf_pair_find_by_phy (phy_sw_if_index));
|
|
||||||
if (!lip) {
|
|
||||||
LCP_ITF_PAIR_ERR ("lcp_itf_pair_add_sub: can't find LCP of parent %U",
|
|
||||||
format_vnet_sw_if_index_name, vnet_get_main (), phy_sw_if_index);
|
|
||||||
return VNET_API_ERROR_INVALID_SW_IF_INDEX;
|
|
||||||
}
|
|
||||||
|
|
||||||
return lcp_itf_pair_add (lip->lip_host_sw_if_index, sub_sw_if_index,
|
|
||||||
host_if_name, vif, lip->lip_host_type, ns);
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *lcp_itf_l3_feat_names[N_LCP_ITF_HOST][N_AF] = {
|
const char *lcp_itf_l3_feat_names[N_LCP_ITF_HOST][N_AF] = {
|
||||||
[LCP_ITF_HOST_TAP] =
|
[LCP_ITF_HOST_TAP] =
|
||||||
{
|
{
|
||||||
|
@ -108,8 +108,6 @@ extern index_t lcp_itf_pair_find_by_vif (u32 vif_index);
|
|||||||
extern int lcp_itf_pair_add (u32 host_sw_if_index, u32 phy_sw_if_index,
|
extern int lcp_itf_pair_add (u32 host_sw_if_index, u32 phy_sw_if_index,
|
||||||
u8 *host_name, u32 host_index,
|
u8 *host_name, u32 host_index,
|
||||||
lip_host_type_t host_type, u8 *ns);
|
lip_host_type_t host_type, u8 *ns);
|
||||||
extern int lcp_itf_pair_add_sub (u32 vif, u8 *host_name, u32 sub_sw_if_index,
|
|
||||||
u32 phy_sw_if_index, u8 *ns);
|
|
||||||
extern int lcp_itf_pair_del (u32 phy_sw_if_index);
|
extern int lcp_itf_pair_del (u32 phy_sw_if_index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user