Community
cancel
Showing results for 
Search instead for 
Did you mean: 
OYILM1
Beginner
2,297 Views

How to add ntuple filter with different masks?

Hi.

We are trying add different ntuple rules with different masks but nic doesn't allow to do so.

For example:

ethtool -N enp7s0f1 flow-type tcp4 src-ip 172.16.0.0 m 0.0.255.255 action -1

After adding above rule, when i try adding another rule with different mask, i get error

 

ethtool -N enp7s0f1 flow-type tcp4 src-ip 192.168.0.0 m 0.0.0.255 action -1

I got this error

rmgr: Cannot insert RX class rule: Invalid argument

and that error on dmesg

ixgbe 0000:07:00.1 enp7s0f1: Only one mask supported per port

And this is also valid for src-ip dst-ip src-port dst-port pairs. I can add a rule only if it has same mask for all options.

These are properties of my test machine.

Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)

Kernel version: 3.15.9

ixgbe version: 4.0.1-k-rh7.1

OS: Centos 7

ethtool version: 3.8 (also tried with 3.18)

I wonder if there is a solution for that? Is it because of nic capability? or can it be fixed by recompiling driver with an option? etc.

Thanks for any help.

0 Kudos
10 Replies
st4
New Contributor III
183 Views

Hi labrisnetworks,

Thank you for the info, we will check on this.

rgds,

wb

st4
New Contributor III
183 Views

Hi labrisnetworks,

Thank you for the info, we will check on this.

rgds,

wb

st4
New Contributor III
183 Views

Hi labrisnetworks,

You may refer to this website

https://www.kernel.org/doc/Documentation/networking/ixgbe.txt https://www.kernel.org/doc/Documentation/networking/ixgbe.txt

Please refer to Intel Ethernet Flow Director:->Other ethtool Commands:

To enable Flow Director ethtool -K ethX ntuple on

To add a filter Use -U switch. e.g., ethtool -U ethX flow-type tcp4 src-ip 10.0.128.23 action 1

To see the list of filters currently present: ethtool -u ethX

Hope this helps.

rgds

wb

OYILM1
Beginner
183 Views

Hi.

Thanks but your answer isn't helpful at all. I know how to use ethtool.

My question was that what is the reason I got the error "only one mask supported per port"? Is there any way to solve that including to use another nic?

st4
New Contributor III
183 Views

Hi Labrisnetworks,

Thank you for the reply.I will further check on this.

rgds,

wb

st4
New Contributor III
183 Views

Hi Labrisnetworks,

 

Good day. Further checking adding ntuple filter to different mask is not doable.

 

Thanks,

wb

 

st4
New Contributor III
183 Views

Hi labrisnetworks,

You may refer to this website

https://www.kernel.org/doc/Documentation/networking/ixgbe.txt https://www.kernel.org/doc/Documentation/networking/ixgbe.txt

Please refer to Intel Ethernet Flow Director:->Other ethtool Commands:

To enable Flow Director ethtool -K ethX ntuple on

To add a filter Use -U switch. e.g., ethtool -U ethX flow-type tcp4 src-ip 10.0.128.23 action 1

To see the list of filters currently present: ethtool -u ethX

Hope this helps.

rgds

wb

OYILM1
Beginner
183 Views

Hi.

Thanks but your answer isn't helpful at all. I know how to use ethtool.

My question was that what is the reason I got the error "only one mask supported per port"? Is there any way to solve that including to use another nic?

st4
New Contributor III
183 Views

Hi Labrisnetworks,

Thank you for the reply.I will further check on this.

rgds,

wb

st4
New Contributor III
183 Views

Hi Labrisnetworks,

 

Good day. Further checking adding ntuple filter to different mask is not doable.

 

Thanks,

wb

 

Reply