RTL8364/RTL8367 芯片手册及驱动源码,可直接用于开发;
#include
static rtk_api_ret_t _rtk_l2_init(void)
{
rtk_api_ret_t retVal;
rtk_uint32 port;
/* Check initialization state */
RTK_CHK_INIT_STATE();
if ((retVal = rtl8367c_setAsicLutIpMulticastLookup(DISABLED)) != RT_ERR_OK)
return retVal;
/*Enable CAM Usage*/
if ((retVal = rtl8367c_setAsicLutCamTbUsage(ENABLED)) != RT_ERR_OK)
return retVal;
if ((retVal = rtl8367c_setAsicLutAgeTimerSpeed(6,2)) !=
1