From 38e5b7ef6650aadadd65c57918caa31bb7d9894a Mon Sep 17 00:00:00 2001 From: LakshminarayananShenbagaraj Date: Thu, 12 Mar 2026 13:37:25 +0000 Subject: [PATCH 1/2] RDKB-63242 : Support for iproute2 to create macvlan. Resolving compilation error as below, "error: 'EthLink_DeleteUnTaggedInterface' defined but not used" Signed-off-by: LakshminarayananShenbagaraj --- source/TR-181/middle_layer_src/ethernet_apis.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/TR-181/middle_layer_src/ethernet_apis.c b/source/TR-181/middle_layer_src/ethernet_apis.c index e04d3df..789ea84 100644 --- a/source/TR-181/middle_layer_src/ethernet_apis.c +++ b/source/TR-181/middle_layer_src/ethernet_apis.c @@ -106,7 +106,9 @@ static ANSC_STATUS EthLink_GetVlanIdAndTPId(const PDML_ETHERNET pEntry, INT *pVl static int EthLink_GetActiveWanInterfaces(char *Alias); static ANSC_STATUS EthLink_DeleteMarking(PDML_ETHERNET pEntry); static ANSC_STATUS EthLink_CreateUnTaggedInterface(PDML_ETHERNET pEntry); +#if !defined(VLAN_MANAGER_HAL_ENABLED) && !defined(COMCAST_VLAN_HAL_ENABLED) static ANSC_STATUS EthLink_DeleteUnTaggedInterface(PDML_ETHERNET pEntry); +#endif /* !VLAN_MANAGER_HAL_ENABLED && !COMCAST_VLAN_HAL_ENABLED */ /*TODO * Need to be Reviewed after Unification finalised. */ @@ -916,6 +918,7 @@ static ANSC_STATUS EthLink_CreateUnTaggedInterface(PDML_ETHERNET pEntry) return returnStatus; } +#if !defined(VLAN_MANAGER_HAL_ENABLED) && !defined(COMCAST_VLAN_HAL_ENABLED) static ANSC_STATUS EthLink_DeleteUnTaggedInterface(PDML_ETHERNET pEntry) { ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS; @@ -937,6 +940,7 @@ static ANSC_STATUS EthLink_DeleteUnTaggedInterface(PDML_ETHERNET pEntry) return returnStatus; } +#endif /* !VLAN_MANAGER_HAL_ENABLED && !COMCAST_VLAN_HAL_ENABLED */ /* Start Vlan Refresh Handle Thread */ void* EthLink_RefreshHandleThread(void *Arg) From 7ea35fece5a6f212f9a4503c7da864d27c84f664 Mon Sep 17 00:00:00 2001 From: LakshminarayananShenbagaraj Date: Thu, 12 Mar 2026 15:31:20 +0000 Subject: [PATCH 2/2] RDKB-63242 : Support for iproute2 to create macvlan. Resolving compilation error as below, "error: 'EthLink_DeleteUnTaggedInterface' defined but not used" Signed-off-by: LakshminarayananShenbagaraj --- source/TR-181/middle_layer_src/ethernet_apis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/TR-181/middle_layer_src/ethernet_apis.c b/source/TR-181/middle_layer_src/ethernet_apis.c index 789ea84..ab54196 100644 --- a/source/TR-181/middle_layer_src/ethernet_apis.c +++ b/source/TR-181/middle_layer_src/ethernet_apis.c @@ -106,9 +106,9 @@ static ANSC_STATUS EthLink_GetVlanIdAndTPId(const PDML_ETHERNET pEntry, INT *pVl static int EthLink_GetActiveWanInterfaces(char *Alias); static ANSC_STATUS EthLink_DeleteMarking(PDML_ETHERNET pEntry); static ANSC_STATUS EthLink_CreateUnTaggedInterface(PDML_ETHERNET pEntry); -#if !defined(VLAN_MANAGER_HAL_ENABLED) && !defined(COMCAST_VLAN_HAL_ENABLED) +#if !defined(VLAN_MANAGER_HAL_ENABLED) static ANSC_STATUS EthLink_DeleteUnTaggedInterface(PDML_ETHERNET pEntry); -#endif /* !VLAN_MANAGER_HAL_ENABLED && !COMCAST_VLAN_HAL_ENABLED */ +#endif /* !VLAN_MANAGER_HAL_ENABLED */ /*TODO * Need to be Reviewed after Unification finalised. */ @@ -918,7 +918,7 @@ static ANSC_STATUS EthLink_CreateUnTaggedInterface(PDML_ETHERNET pEntry) return returnStatus; } -#if !defined(VLAN_MANAGER_HAL_ENABLED) && !defined(COMCAST_VLAN_HAL_ENABLED) +#if !defined(VLAN_MANAGER_HAL_ENABLED) static ANSC_STATUS EthLink_DeleteUnTaggedInterface(PDML_ETHERNET pEntry) { ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS; @@ -940,7 +940,7 @@ static ANSC_STATUS EthLink_DeleteUnTaggedInterface(PDML_ETHERNET pEntry) return returnStatus; } -#endif /* !VLAN_MANAGER_HAL_ENABLED && !COMCAST_VLAN_HAL_ENABLED */ +#endif /* !VLAN_MANAGER_HAL_ENABLED */ /* Start Vlan Refresh Handle Thread */ void* EthLink_RefreshHandleThread(void *Arg)