From b89c1ddcb3b4f9138ca3ebefb2115f896ff3e1bd Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Thu, 12 Aug 2021 21:35:06 +0200 Subject: linux-cp: Complete interface creation logic Linux Control Plane interface creation logic is currently only able to create untagged interfaces, and dot1q VLAN sub-interfaces. This change makes it possible to create dot1ad VLAN sub-ints, and Q-in-AD as well as Q-in-Q sub-interfaces as well. It makes the plugin a bit more robust by catching a few common errors, such as creating an lcp on a sub-interface without its parent having one, and creating an lcp on a sub-interface that is not exact-match. This change has a bunch of smaller improvemnets as well. I documented my work in this post: https://ipng.ch/s/articles/2021/08/12/vpp-1.html It shows that after the change is merged, all VPP interface types now create and operate cleanly as LCP interfaces as well. Type: improvement Signed-off-by: Pim van Pelt Change-Id: I322669f7316d44c227090b83d6a574fb9c00e76a --- src/plugins/linux-cp/lcp_api.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/plugins/linux-cp/lcp_api.c') diff --git a/src/plugins/linux-cp/lcp_api.c b/src/plugins/linux-cp/lcp_api.c index c9aa01566c6..7f77bf71f1d 100644 --- a/src/plugins/linux-cp/lcp_api.c +++ b/src/plugins/linux-cp/lcp_api.c @@ -41,22 +41,6 @@ api_encode_host_type (lip_host_type_t type) return LCP_API_ITF_HOST_TAP; } -void -lcp_set_auto_intf (u8 is_auto) -{ - lcp_main_t *lcpm = &lcp_main; - - lcpm->auto_intf = (is_auto != 0); -} - -int -lcp_auto_intf (void) -{ - lcp_main_t *lcpm = &lcp_main; - - return lcpm->auto_intf; -} - static int vl_api_lcp_itf_pair_add (u32 phy_sw_if_index, lip_host_type_t lip_host_type, u8 *mp_host_if_name, size_t sizeof_host_if_name, -- cgit 1.2.3-korg