Please forgive me if I am asking newbie questions since I am fairly new to an embedded system. I am trying to enable storm prevention from the Linux kernel. I am using dual emac and eth2 and eth3 as my bond0. I have referenced the information from https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Industrial_Protocols_HSR_PRP.html. It says I can enable the storm prevention if I typing the following.
>echo 10 > /sys/devices/platform/pruss2_eth/net/eth2/nsp_credit_bc
My Linux has only nsp_credit so I typed nsp_credit instead of nsp_credit_bc. Then I created arp request from other devices and see whether this network storm prevention works. However, there had been no improvement. The system still freezes and did not work, when there were many arp requests on the network. I want to know whether the prevention works using the above command from the Linux kernel.
My other question is about Mac Filtering. I also checked the above website to find the reference for dual emac mac filtering. I saw that the below command from Linux kernel can check the status of the mac filtering.
However, what I want to know is how can I enable/disable the mac filtering and also altering the mac table? Thank you for your help in advance.
PS. I have checked the statistics memory space (1F90) and I have checked that the value has changed when I do echo 10 command. However, when I disable it, by typing echo 0, the value has not changed to zero.
Is this a bug? Also, even though the network storm prevention is enabled, the dropped packet is always zero, which indicates that network prevnetion mode has not dropped the packet at all. By looking at the
memory space, I am certain that the network storm prevention is not working correctly. What could affect this?