I am using P2020 QorIQ Processor and would like to filter receive packets in NIC. The NXP driver for NIC card we are using is from linux open source present in drivers\net\ethernet\freescale\gianfar_ethtool.c
I can configure simple rules to drop or accept packet based on MAC or IP using:
// allow only IP4 packets destined to device
ethtool -N eth0 flow-type ip4 dst-ip 172.16.12.125 action 0 loc 0
// drop everything else no matter what protocol (packet type)
ethtool -N eth0 flow-type ether dst ff:ff:ff:ff:ff:ff m ff:ff:ff:ff:ff:ff:ff action -1 loc 3
I am trying to add rule very similar to 188.8.131.52.9 "Filer example-interrupt from deep sleep" in P2020RM.pfd reference manual attached. Any idea how to implement cluster of receive filer rules to enable filtering based on two or more rules ANDed simultaneously.
Thanks a lot for your help