How to configure Rx network flow classification rules

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to configure Rx network flow classification rules

1,413 次查看
ashish2410
Contributor I

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 14.6.5.2.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

0 项奖励
回复
0 回复数