From: Govindarajulu Varadarajan <_govind@gmx.com>
To: ben@decadent.org.uk, davem@davemloft.net
Cc: netdev@vger.kernel.org
Subject: query: ethtool --show-nfc mask interpretation
Date: Fri, 4 Jul 2014 21:43:12 +0530 (IST) [thread overview]
Message-ID: <alpine.LNX.2.03.1407042034540.7230@ws.cisco> (raw)
I was working on ethtool --show-nfc implementation for enic.
While displaying, ethtool displays the 1's compliment of
ethtool_rx_flow_spec->m_u.tcp_ip4_spec.psrc
I could not understand how to interpret the mask output
For eg.
[root@a163 linux-next]# ethtool -n enp9s0
8 RX rings available
Total 2 rules
Filter: 0
Rule Type: TCP over IPv4
Src IP addr: 10.65.79.1 mask: 255.255.0.0
Dest IP addr: 10.106.186.163 mask: 255.255.255.255
TOS: 0x0 mask: 0x0
Src port: 51331 mask: 0xff
Dest port: 22 mask: 0xffff
Action: Direct to queue 4
The mask for src port is 0x00ff. Does that mean 8 bits in lsb should match and
the other 8 bits in msb should be ignored? Or is it the other way?
Thanks
next reply other threads:[~2014-07-04 16:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-04 16:13 Govindarajulu Varadarajan [this message]
2014-07-07 1:36 ` query: ethtool --show-nfc mask interpretation Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.03.1407042034540.7230@ws.cisco \
--to=_govind@gmx.com \
--cc=ben@decadent.org.uk \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox