There is a bug in ixgbe relating to creating and deleting flow director rules.
Enable flow director and create two simple rules in locations 1 and 2 like this:
sudo ethtool -K eth0 ntuple on
sudo ethtool -U eth0 flow-type udp4 src-port 5000 action 1 loc 1
sudo ethtool -U eth0 flow-type udp4 src-port 5001 action 2 loc 2
You now cannot delete rule 1:
sudo ethtool -U eth0 delete 1
rmgr: Cannot delete RX class rule: Invalid argument
Cannot delete classification rule
You cannot even view rule 1:
ethtool -u eth0
8 RX rings available
Total 2 rules
Filter: 2
Rule Type: UDP over IPv4
Src IP addr: 0.0.0.0 mask: 255.255.255.255
Dest IP addr: 0.0.0.0 mask: 255.255.255.255
TOS: 0x0 mask: 0xff
Src port: 5001 mask: 0x0
Dest port: 0 mask: 0xffff
VLAN EtherType: 0x0 mask: 0xffff
VLAN: 0x0 mask: 0xffff
User-defined: 0x0 mask: 0xffffffffffffffff
Action: Direct to queue 2
rxclass: Cannot get RX class rule: Invalid argument
RX classification rule retrieval failed
But if you delete rule 2, rule 1 becomes visible again:
sudo ethtool -U eth0 delete 2
ethtool -u eth0
8 RX rings available
Total 1 rules
Filter: 1
Rule Type: UDP over IPv4
Src IP addr: 0.0.0.0 mask: 255.255.255.255
Dest IP addr: 0.0.0.0 mask: 255.255.255.255
TOS: 0x0 mask: 0xff
Src port: 5000 mask: 0x0
Dest port: 0 mask: 0xffff
VLAN EtherType: 0x0 mask: 0xffff
VLAN: 0x0 mask: 0xffff
User-defined: 0x0 mask: 0xffffffffffffffff
Action: Direct to queue 1
The bug appears to be in ixgbe_update_ethtool_fdir_entry(). A different version
of this function in version 3.15.1-k (supplied with Ubuntu 14.04) works
correctly.
Regards,
Stuart.
Stuart Grace
Project Technologist
BBC Research & Development
R&D North Lab, 5th Floor
Dock House, MediaCityUK, Salford, M50 2LH, UK
-----------------------------
http://www.bbc.co.uk
This e-mail (and any attachments) is confidential and
may contain personal views which are not the views of the BBC unless
specifically stated.
If you have received it in
error, please delete it from your system.
Do not use, copy or disclose the
information in any way nor act in reliance on it and notify the sender
immediately.
Please note that the BBC monitors e-mails
sent or received.
Further communication will signify your consent to
this.
-----------------------------
------------------------------------------------------------------------------
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit
http://communities.intel.com/community/wired