In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficGenerator.h:31:0,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:30,
from hi/marvell/hiEnhancedSflow.c:7:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficEngine.h:100:45: error: conflicting types for 'CPSS_NET_RX_CPU_CODE_ENT'
typedef enum { CPSS_NET_RX_CPU_CODE_ENT_E } CPSS_NET_RX_CPU_CODE_ENT;
^
In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pha/cpssDxChPha.h:42:0,
from hi/marvell/hiEnhancedSflow.c:3:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/networkIf/cpssGenNetIfTypes.h:1373:3: note: previous declaration of 'CPSS_NET_RX_CPU_CODE_ENT' was here
} CPSS_NET_RX_CPU_CODE_ENT;
^
In file included from hi/marvell/hiEnhancedSflow.c:7:0:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:727:8: error: unknown type name 'CPSS_DXCH_MIRROR_ON_DROP_STC'
IN CPSS_DXCH_MIRROR_ON_DROP_STC *configPtr
^
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:751:9: error: unknown type name 'CPSS_DXCH_MIRROR_ON_DROP_STC'
OUT CPSS_DXCH_MIRROR_ON_DROP_STC *configPtr
^
In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/bridge/cpssDxChBrgVlan.h:29:0,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/networkIf/cpssDxChNetIfTypes.h:29,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/port/cpssDxChPortStat.h:32,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/extMac/cpssExtMacDrv.h:65,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cpssHwInit/cpssHwInit.h:28,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pcl/cpssDxChPcl.h:23,
from hi/marvell/hiEnhancedSflow.c:11:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/bridge/cpssGenBrgVlanTypes.h:132:3: error: conflicting types for 'CPSS_ETHER_MODE_ENT'
} CPSS_ETHER_MODE_ENT;
^
In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:30:0,
from hi/marvell/hiEnhancedSflow.c:7:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficGenerator.h:41:40: note: previous declaration of 'CPSS_ETHER_MODE_ENT' was here
typedef enum { CPSS_ETHER_MODE_ENT_E } CPSS_ETHER_MODE_ENT;
^
In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/extMac/cpssExtMacDrv.h:66:0,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cpssHwInit/cpssHwInit.h:28,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pcl/cpssDxChPcl.h:23,
from hi/marvell/hiEnhancedSflow.c:11:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cscd/cpssGenCscd.h:87:3: error: conflicting types for 'CPSS_CSCD_PORT_TYPE_ENT'
} CPSS_CSCD_PORT_TYPE_ENT;
^
In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:30:0,
from hi/marvell/hiEnhancedSflow.c:7:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficGenerator.h:39:44: note: previous declaration of 'CPSS_CSCD_PORT_TYPE_ENT' was here
typedef enum { CPSS_CSCD_PORT_TYPE_ENT_E } CPSS_CSCD_PORT_TYPE_ENT;
^
hi/marvell/hiEnhancedSflow.c:110:2: error: unknown type name 'PRV_TGF_BRG_EGRESS_PORT_INFO_STC'
PRV_TGF_BRG_EGRESS_PORT_INFO_STC egressInfo;
^
hi/marvell/hiEnhancedSflow.c:111:5: error: unknown type name 'PRV_TGF_BRG_EGRESS_PORT_INFO_STC'
PRV_TGF_BRG_EGRESS_PORT_INFO_STC egressInfo2;
^
hi/marvell/hiEnhancedSflow.c:133:11: error: 'PRV_TGF_VLANID_CNS' undeclared here (not in a function)
0, 0, PRV_TGF_VLANID_CNS /* pri, cfi, VlanId */
^
In file included from hi/marvell/hiEnhancedSflow.c:18:0:
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowEpcl1config':
../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror]
return __rv;\
^
hi/marvell/hiEnhancedSflow.c:252:5: note: in expansion of macro 'APPL_IF_ERR_RET'
APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr));
^
hi/marvell/hiEnhancedSflow.c:254:12: error: 'return' with a value, in function returning void [-Werror]
return ERR_NO_ERROR;
^
In file included from hi/marvell/hiEnhancedSflow.c:18:0:
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowEpcl2config':
../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror]
return __rv;\
^
hi/marvell/hiEnhancedSflow.c:296:2: note: in expansion of macro 'APPL_IF_ERR_RET'
APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr));
^
hi/marvell/hiEnhancedSflow.c:298:12: error: 'return' with a value, in function returning void [-Werror]
return ERR_NO_ERROR;
^
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowEpcl3config':
hi/marvell/hiEnhancedSflow.c:320:44: error: expected expression before '=' token
match.match[HI_TPCL_MAT_EGR_LOCAL_UP_E] = = TRUE;
^
hi/marvell/hiEnhancedSflow.c:330:55: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV4_CNS' undeclared (first use in this function)
PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV4_CNS :
^
hi/marvell/hiEnhancedSflow.c:330:55: note: each undeclared identifier is reported only once for each function it appears in
hi/marvell/hiEnhancedSflow.c:331:55: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS' undeclared (first use in this function)
PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS ;
^
In file included from hi/marvell/hiEnhancedSflow.c:18:0:
../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror]
return __rv;\
^
hi/marvell/hiEnhancedSflow.c:343:2: note: in expansion of macro 'APPL_IF_ERR_RET'
APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr));
^
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowPhaConfig':
hi/marvell/hiEnhancedSflow.c:364:5: error: implicit declaration of function 'UTF_VERIFY_EQUAL0_STRING_MAC' [-Werror=implicit-function-declaration]
UTF_VERIFY_EQUAL0_STRING_MAC(GT_OK, rc, "Failure in cpssDxChPhaFwImageIdGet");
^
hi/marvell/hiEnhancedSflow.c:386:62: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS' undeclared (first use in this function)
rc = cpssDxChPhaThreadIdEntrySet(ENHANCED_SFLOW_DEV_CNS, PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS, &commonInfo,
^
hi/marvell/hiEnhancedSflow.c:392:62: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_CNS' undeclared (first use in this function)
rc = cpssDxChPhaThreadIdEntrySet(ENHANCED_SFLOW_DEV_CNS, PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_CNS, &commonInfo,
^
hi/marvell/hiEnhancedSflow.c: In function 'EnhancedSflowIngressMirrorConfig':
hi/marvell/hiEnhancedSflow.c:424:5: error: implicit declaration of function 'UTF_VERIFY_EQUAL1_STRING_MAC' [-Werror=implicit-function-declaration]
UTF_VERIFY_EQUAL1_STRING_MAC(GT_OK, rc, "prvTgfMirrorAnalyzerInterfaceGet: %d", ENHANCED_SFLOW_DEV_CNS);
^
hi/marvell/hiEnhancedSflow.c:435:7: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortTargetMappingTableGet' [-Werror=implicit-function-declaration]
rc = prvTgfBrgEportToPhysicalPortTargetMappingTableGet(ENHANCED_SFLOW_DEV_CNS, DEFAULT_EPORT_CNS,
^
hi/marvell/hiEnhancedSflow.c:441:5: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortTargetMappingTableSet' [-Werror=implicit-function-declaration]
prvTgfBrgEportToPhysicalPortTargetMappingTableSet(ENHANCED_SFLOW_DEV_CNS, DEFAULT_EPORT_CNS, &phyPortInfo);
^
hi/marvell/hiEnhancedSflow.c:448:7: error: too many arguments to function 'cpssDxChMirrorTxStatMirrorToAnalyzerIndexRatioSet'
rc = cpssDxChMirrorTxStatMirrorToAnalyzerIndexRatioSet(ENHANCED_SFLOW_DEV_CNS, SFLOW_ANALYZER_CNS, GT_TRUE, egRate);
^
In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/tunnel/cpssDxChTunnelTypes.h:32:0,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/cpssDxChTypes.h:30,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/bridge/cpssDxChBrgVlan.h:33,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/networkIf/cpssDxChNetIfTypes.h:29,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/port/cpssDxChPortStat.h:32,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/extMac/cpssExtMacDrv.h:65,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cpssHwInit/cpssHwInit.h:28,
from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pcl/cpssDxChPcl.h:23,
from hi/marvell/hiEnhancedSflow.c:11:
/project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/mirror/cpssDxChMirror.h:1116:11: note: declared here
GT_STATUS cpssDxChMirrorTxStatMirrorToAnalyzerIndexRatioSet
^
hi/marvell/hiEnhancedSflow.c: In function 'EnhancedSflowMirrorConfig':
hi/marvell/hiEnhancedSflow.c:463:5: error: unknown type name 'PRV_TGF_BRG_EGRESS_PORT_INFO_STC'
PRV_TGF_BRG_EGRESS_PORT_INFO_STC egressInfo;
^
hi/marvell/hiEnhancedSflow.c:476:10: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortEgressPortInfoGet' [-Werror=implicit-function-declaration]
rc = prvTgfBrgEportToPhysicalPortEgressPortInfoGet(ENHANCED_SFLOW_DEV_CNS, PASS2_EPORT_CNS,
^
hi/marvell/hiEnhancedSflow.c:481:15: error: request for member 'tunnelStart' in something not a structure or union
egressInfo.tunnelStart = GT_TRUE;
^
hi/marvell/hiEnhancedSflow.c:482:15: error: request for member 'tunnelStartPtr' in something not a structure or union
egressInfo.tunnelStartPtr = protocol == CPSS_IP_PROTOCOL_IPV4_E? TUNNEL_START_IPV4_CNS : TUNNEL_START_IPV6_CNS;
^
hi/marvell/hiEnhancedSflow.c:483:15: error: request for member 'tsPassengerPacketType' in something not a structure or union
egressInfo.tsPassengerPacketType = PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E;
^
hi/marvell/hiEnhancedSflow.c:483:41: error: 'PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E' undeclared (first use in this function)
egressInfo.tsPassengerPacketType = PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E;
^
hi/marvell/hiEnhancedSflow.c:484:10: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortEgressPortInfoSet' [-Werror=implicit-function-declaration]
rc = prvTgfBrgEportToPhysicalPortEgressPortInfoSet(ENHANCED_SFLOW_DEV_CNS, PASS2_EPORT_CNS, &egressInfo);
^
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowIpclConfig':
hi/marvell/hiEnhancedSflow.c:506:45: error: 'PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E' undeclared (first use in this function)
pclAction.redirect.data.outIf.tunnelType = PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E;
^
In file included from hi/marvell/hiEnhancedSflow.c:18:0:
../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror]
return __rv;\
^
hi/marvell/hiEnhancedSflow.c:515:2: note: in expansion of macro 'APPL_IF_ERR_RET'
APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr));
^
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowLBConfig':
hi/marvell/hiEnhancedSflow.c:540:5: error: implicit declaration of function 'cpssOsTimerWkAfter' [-Werror=implicit-function-declaration]
cpssOsTimerWkAfter(10);
^
hi/marvell/hiEnhancedSflow.c: In function 'EnhancedSflowIpTsConfig':
hi/marvell/hiEnhancedSflow.c:557:5: error: unknown type name 'PRV_TGF_TUNNEL_START_ENTRY_UNT'
PRV_TGF_TUNNEL_START_ENTRY_UNT tunnelEntry;
^
hi/marvell/hiEnhancedSflow.c:562:20: error: request for member 'ipv4Cfg' in something not a structure or union
tunnelEntry.ipv4Cfg.tagEnable = GT_TRUE;
^
hi/marvell/hiEnhancedSflow.c:563:20: error: request for member 'ipv4Cfg' in something not a structure or union
tunnelEntry.ipv4Cfg.vlanId = VLANID_CNS;
^
hi/marvell/hiEnhancedSflow.c:564:20: error: request for member 'ipv4Cfg' in something not a structure or union
tunnelEntry.ipv4Cfg.ttl = 20;
^
hi/marvell/hiEnhancedSflow.c:565:20: error: request for member 'ipv4Cfg' in something not a structure or union
tunnelEntry.ipv4Cfg.ipHeaderProtocol = PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E;
^
hi/marvell/hiEnhancedSflow.c:565:54: error: 'PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E' undeclared (first use in this function)
tunnelEntry.ipv4Cfg.ipHeaderProtocol = PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E;
^
hi/marvell/hiEnhancedSflow.c:566:20: error: request for member 'ipv4Cfg' in something not a structure or union
tunnelEntry.ipv4Cfg.udpDstPort = SFLOW_V5_UDP_PORT_CNS;
^
hi/marvell/hiEnhancedSflow.c:567:20: error: request for member 'ipv4Cfg' in something not a structure or union
tunnelEntry.ipv4Cfg.udpSrcPort = SFLOW_V5_UDP_PORT_CNS;
^
hi/marvell/hiEnhancedSflow.c:568:27: error: request for member 'ipv4Cfg' in something not a structure or union
memcpy(tunnelEntry.ipv4Cfg.macDa.arEther, MirroredPacketTunnelL2Part.daMac, sizeof(TGF_MAC_ADDR));
^
hi/marvell/hiEnhancedSflow.c:569:27: error: request for member 'ipv4Cfg' in something not a structure or union
memcpy(tunnelEntry.ipv4Cfg.destIp.arIP, colIpAddr, sizeof(TGF_IPV4_ADDR));
^
hi/marvell/hiEnhancedSflow.c:570:27: error: request for member 'ipv4Cfg' in something not a structure or union
memcpy(tunnelEntry.ipv4Cfg.srcIp.arIP, MirroredPacketTunnelIpv4Part.srcAddr, sizeof(TGF_IPV4_ADDR));
^
hi/marvell/hiEnhancedSflow.c:571:14: error: implicit declaration of function 'prvTgfTunnelStartEntrySet' [-Werror=implicit-function-declaration]
rc = prvTgfTunnelStartEntrySet(TUNNEL_START_IPV4_CNS, CPSS_TUNNEL_GENERIC_IPV4_E, &tunnelEntry);
^
hi/marvell/hiEnhancedSflow.c:575:20: error: request for member 'ipv6Cfg' in something not a structure or union
tunnelEntry.ipv6Cfg.tagEnable = GT_TRUE;
^
hi/marvell/hiEnhancedSflow.c:576:20: error: request for member 'ipv6Cfg' in something not a structure or union
tunnelEntry.ipv6Cfg.vlanId = VLANID_CNS;
^
hi/marvell/hiEnhancedSflow.c:577:20: error: request for member 'ipv6Cfg' in something not a structure or union
tunnelEntry.ipv6Cfg.ttl = 20;
^
hi/marvell/hiEnhancedSflow.c:578:20: error: request for member 'ipv6Cfg' in something not a structure or union
tunnelEntry.ipv6Cfg.ipHeaderProtocol = PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E;
^
hi/marvell/hiEnhancedSflow.c:579:20: error: request for member 'ipv6Cfg' in something not a structure or union
tunnelEntry.ipv6Cfg.udpDstPort = SFLOW_V5_UDP_PORT_CNS;
^
hi/marvell/hiEnhancedSflow.c:580:20: error: request for member 'ipv6Cfg' in something not a structure or union
tunnelEntry.ipv6Cfg.udpSrcPort = SFLOW_V5_UDP_PORT_CNS;
^
hi/marvell/hiEnhancedSflow.c:581:27: error: request for member 'ipv6Cfg' in something not a structure or union
memcpy(tunnelEntry.ipv6Cfg.macDa.arEther, MirroredPacketTunnelL2Part.daMac, sizeof(TGF_MAC_ADDR));
^
hi/marvell/hiEnhancedSflow.c:582:27: error: request for member 'ipv6Cfg' in something not a structure or union
memcpy(tunnelEntry.ipv6Cfg.destIp.arIP, colIpAddr, sizeof(TGF_IPV6_ADDR));
^
hi/marvell/hiEnhancedSflow.c:583:27: error: request for member 'ipv6Cfg' in something not a structure or union
memcpy(tunnelEntry.ipv6Cfg.srcIp.arIP, MirroredPacketTunnelIpv6Part.srcAddr, sizeof(TGF_IPV6_ADDR));
^
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowBridgeConfig':
hi/marvell/hiEnhancedSflow.c:592:2: error: unknown type name 'PRV_TGF_BRG_MAC_ENTRY_STC'
PRV_TGF_BRG_MAC_ENTRY_STC prvTgfMacEntry;
^
hi/marvell/hiEnhancedSflow.c:595:10: error: implicit declaration of function 'prvTgfBrgDefVlanEntryWriteWithTaggingCmd' [-Werror=implicit-function-declaration]
rc = prvTgfBrgDefVlanEntryWriteWithTaggingCmd(ENHANCED_SFLOW_VLANID_CNS, PRV_TGF_BRG_VLAN_PORT_TAG0_CMD_E);
^
hi/marvell/hiEnhancedSflow.c:597:5: error: implicit declaration of function 'prvTgfBrgVlanMemberRemove' [-Werror=implicit-function-declaration]
prvTgfBrgVlanMemberRemove(ENHANCED_SFLOW_DEV_CNS, ENHANCED_SFLOW_VLANID_CNS, ANALYZER_PORT_CNS);
^
hi/marvell/hiEnhancedSflow.c:601:19: error: request for member 'key' in something not a structure or union
prvTgfMacEntry.key.entryType = PRV_TGF_FDB_ENTRY_TYPE_MAC_ADDR_E;
^
hi/marvell/hiEnhancedSflow.c:601:51: error: 'PRV_TGF_FDB_ENTRY_TYPE_MAC_ADDR_E' undeclared (first use in this function)
prvTgfMacEntry.key.entryType = PRV_TGF_FDB_ENTRY_TYPE_MAC_ADDR_E;
^
hi/marvell/hiEnhancedSflow.c:602:19: error: request for member 'key' in something not a structure or union
prvTgfMacEntry.key.key.macVlan.vlanId = ENHANCED_SFLOW_VLANID_CNS;
^
hi/marvell/hiEnhancedSflow.c:603:19: error: request for member 'dstInterface' in something not a structure or union
prvTgfMacEntry.dstInterface.type = CPSS_INTERFACE_PORT_E;
^
hi/marvell/hiEnhancedSflow.c:604:19: error: request for member 'dstInterface' in something not a structure or union
prvTgfMacEntry.dstInterface.devPort.hwDevNum = ENHANCED_SFLOW_DEV_CNS;
^
hi/marvell/hiEnhancedSflow.c:605:19: error: request for member 'dstInterface' in something not a structure or union
prvTgfMacEntry.dstInterface.devPort.portNum = TX_PORT_CNS; /*the sender*/
^
hi/marvell/hiEnhancedSflow.c:606:19: error: request for member 'isStatic' in something not a structure or union
prvTgfMacEntry.isStatic = GT_FALSE;
^
hi/marvell/hiEnhancedSflow.c:607:19: error: request for member 'daCommand' in something not a structure or union
prvTgfMacEntry.daCommand = PRV_TGF_PACKET_CMD_FORWARD_E;
^
hi/marvell/hiEnhancedSflow.c:607:51: error: 'PRV_TGF_PACKET_CMD_FORWARD_E' undeclared (first use in this function)
prvTgfMacEntry.daCommand = PRV_TGF_PACKET_CMD_FORWARD_E;
^
hi/marvell/hiEnhancedSflow.c:608:19: error: request for member 'saCommand' in something not a structure or union
prvTgfMacEntry.saCommand = PRV_TGF_PACKET_CMD_FORWARD_E;
^
hi/marvell/hiEnhancedSflow.c:610:26: error: request for member 'key' in something not a structure or union
memcpy(prvTgfMacEntry.key.key.macVlan.macAddr.arEther, OriginalPacketL2Part.daMac, sizeof(TGF_MAC_ADDR));
^
hi/marvell/hiEnhancedSflow.c:613:10: error: implicit declaration of function 'prvTgfBrgFdbMacEntrySet' [-Werror=implicit-function-declaration]
rc = prvTgfBrgFdbMacEntrySet(&prvTgfMacEntry);
^
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowTrafficSend':
hi/marvell/hiEnhancedSflow.c:703:5: error: implicit declaration of function 'PRV_UTF_LOG0_MAC' [-Werror=implicit-function-declaration]
PRV_UTF_LOG0_MAC("======= Send first packet =======\n");
^
hi/marvell/hiEnhancedSflow.c:705:60: error: 'TX_PORT_IDX_CNS' undeclared (first use in this function)
rc = prvTgfStartTransmitingEth(ENHANCED_SFLOW_DEV_CNS, TX_PORT_IDX_CNS);
^
hi/marvell/hiEnhancedSflow.c:722:5: error: implicit declaration of function 'prvTgfMirrorEgressEnhancedSflowValidatePacket' [-Werror=implicit-function-declaration]
prvTgfMirrorEgressEnhancedSflowValidatePacket(packetBuf, protocol);
^
hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowValidatePacket':
hi/marvell/hiEnhancedSflow.c:761:35: error: 'TX_PORT_IDX_CNS' undeclared (first use in this function)
UTF_VERIFY_EQUAL0_STRING_MAC((TX_PORT_IDX_CNS & 0XFF), value, "source port mismatch");
^
hi/marvell/hiEnhancedSflow.c:763:10: error: implicit declaration of function 'cpssDxChCfgHwDevNumGet' [-Werror=implicit-function-declaration]
rc = cpssDxChCfgHwDevNumGet(ENHANCED_SFLOW_DEV_CNS, &localDevNum);
^
cc1: all warnings being treated as errors
CMakeFiles/dmp.dir/build.make:1365: recipe for target 'CMakeFiles/dmp.dir/hi/marvell/hiEnhancedSflow.c.o' failed
make[4]: *** [CMakeFiles/dmp.dir/hi/marvell/hiEnhancedSflow.c.o] Error 1
make[4]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:78: recipe for target 'CMakeFiles/dmp.dir/all' failed
make[3]: *** [CMakeFiles/dmp.dir/all] Error 2
Makefile:132: recipe for target 'all' failed
make[2]: *** [all] Error 2
package/tplink/tplink-generic.mk:289: recipe for target '/project/fep_switch/tplink/buildroot/build/ac5x_pro/build/tplink/dmp-1.0/.stamp_built' failed
make[1]: *** [/project/fep_switch/tplink/buildroot/build/ac5x_pro/build/tplink/dmp-1.0/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
解决下这些报错