Tool/software:
SDK8.6 , how do I discard ARP packets that pass through all CPSW9G ports?
ARP etherType policer is now added, I
can see that EtherType: 0806 was added successfully in the ALE log.
However, ARP packets are still sent. How do I discard ARP packets?
polInArgs.policerMatch.policerMatchEnMask |= CPSW_ALE_POLICER_MATCH_ETHERTYPE; polInArgs.policerMatch.dstMacAddrInfo.portNum = CPSW_ALE_MACPORT_TO_ALEPORT(ENET_MAC_PORT_x); polInArgs.policerMatch.etherType = 0x0806; /*ARP*/ polInArgs.threadIdEn = true; polInArgs.threadId = flowId; polInArgs.peakRateInBitsPerSec = 0; polInArgs.commitRateInBitsPerSec = 0; ENET_IOCTL_SET_INOUT_ARGS(&prms, &polInArgs, &polOutArgs); Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_SET_POLICER, &prms); [MCU2_0] 27.948199 s: 19: EtherType: 0806 [MCU2_0] 27.948239 s: RAW:[1 200000 [MCU2_0] 27.948279 s: 00 00000806] [MCU2_0] 27.952373 s: 10: POLICER_ETHERTYPE,ALE Index: 19 [MCU2_0] 27.952412 s: 10: POLICER_THREAD,THREAD ID:0 [MCU2_0] 27.952455 s: 10: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0