Hello,
I am using Am243x-lp and I added VLAN entry with ID to port1 in ALE and when I tried to delete this VLAN using `CPSW_ALE_IOCTL_REMOVE_VLAN` it gives me error and I can not track what is wrong because I used the same to delete OUI entry and unicast entry and everything is working fine
void L2EntryTable_vDeleteVlanEntry(EnetApp_PerCtxt *perCtxt, uint32_t u32VlanId){ CpswAle_VlanEntryInfo sVlanEntryInfo; Enet_IoctlPrms sParameters; int32_t s32Status; memset(&sVlanEntryInfo, 0U, sizeof (CpswAle_VlanEntryInfo)); sVlanEntryInfo.vlanIdInfo.vlanId = u32VlanId; sVlanEntryInfo.vlanIdInfo.tagType = ENET_VLAN_TAG_TYPE_INNER;
ENET_IOCTL_SET_IN_ARGS(&sParameters,&sVlanEntryInfo) ENET_IOCTL(perCtxt->hEnet,gEnetApp.coreId,CPSW_ALE_IOCTL_REMOVE_VLAN,&sParameters,s32Status); if (s32Status != ENET_SOK) { EnetAppUtils_print("L2EntryTable_vDeleteVlanEntry() failed CPSW_ALE_IOCTL_REMOVE_ADDR: %d\n", s32Status); } else { EnetAppUtils_print("VLAN Entry Deleted: \n\r"); }
}
I added entry with VLAN ID = 20 and I pass to this function u32VlanId = 20 and this error appears.
ERROR : Enet_validateIoctl: Malformed IOCTL cmd 0x0101020c prms 700F6ED0 inArgs 700F6EE0 / 32 outArg 00000000 / 0
Enet_validateIoctl: Malformed IOCTL
Assertion @ Line: 1729 in /nightlybuilds/mcupsdk_internal/jenkins/mcu_plus_sdk_am243x_09_01_00_41/source/networking/enet/core/src/core/enet.c: status == ENET_SOK