if (cntr_idx!=DOT1D_TP_LEARNED_ENTRY_DISCARDS_INDEX)
return RT_ERR_STAT_INVALID_GLOBAL_CNTR;
- if ((retVal = rtl8367c_getAsicMIBsCounter(0, cntr_idx, pCntr)) != RT_ERR_OK)
+ if ((retVal = rtl8367c_getAsicMIBsCounter(0, (RTL8367C_MIBCOUNTER)cntr_idx, pCntr)) != RT_ERR_OK)
return retVal;
return RT_ERR_OK;
if(NULL == pGlobal_cntrs)
return RT_ERR_NULL_POINTER;
- if ((retVal = rtl8367c_getAsicMIBsCounter(0,DOT1D_TP_LEARNED_ENTRY_DISCARDS_INDEX, &pGlobal_cntrs->dot1dTpLearnedEntryDiscards)) != RT_ERR_OK)
+ if ((retVal = rtl8367c_getAsicMIBsCounter(0, dot1dTpLearnedEntryDiscards, &pGlobal_cntrs->dot1dTpLearnedEntryDiscards)) != RT_ERR_OK)
return retVal;
return RT_ERR_OK;
{
if ((retVal = rtl8367c_getAsicVlanProtocolBasedGroupData(i, &ppb_data_cfg)) != RT_ERR_OK)
return retVal;
- tmp = pInfo->frame_type;
+ tmp = (rtl8367c_provlan_frametype)pInfo->frame_type;
if (ppb_data_cfg.etherType == pInfo->proto_type && ppb_data_cfg.frameType == tmp)
{
/*Already exist*/
else if (empty<RTL8367C_PROTOVLAN_GROUPNO)
{
/*No exist index, but have empty index*/
- ppb_data_cfg.frameType = pInfo->frame_type;
+ ppb_data_cfg.frameType = (rtl8367c_provlan_frametype)pInfo->frame_type;
ppb_data_cfg.etherType = pInfo->proto_type;
if ((retVal = rtl8367c_setAsicVlanProtocolBasedGroupData(empty, &ppb_data_cfg)) != RT_ERR_OK)
return retVal;
if (tag_mode >= VLAN_TAG_MODE_END)
return RT_ERR_PORT_ID;
- if ((retVal = rtl8367c_setAsicVlanEgressTagMode(rtk_switch_port_L2P_get(port), tag_mode)) != RT_ERR_OK)
+ if ((retVal = rtl8367c_setAsicVlanEgressTagMode(rtk_switch_port_L2P_get(port), (rtl8367c_egtagmode)tag_mode)) != RT_ERR_OK)
return retVal;
return RT_ERR_OK;