From: Santwona.Behera@Sun.COM
To: netdev@vger.kernel.org, davem@davemloft.net, jeff@garzik.org,
gkernel-commit@lists.sourceforge.net
Cc: Matheos Worku <Matheos.Worku@Sun.COM>,
Mehdi Bonyadi <Mehdi.Bonyadi@Sun.COM>,
Santwona Behera <Santwona.Behera@Sun.COM>
Subject: [PATCH 0/3] Add support for RX packet classification in a network device
Date: Mon, 09 Feb 2009 15:12:11 -0800 [thread overview]
Message-ID: <4990B84B.5040108@Sun.COM> (raw)
This set of 3 patches was originally posted on December 22, '08. This is
a respin of the patches, incorporating feedback received from the
original posting.
Added new interfaces to ethtool to add, delete and manage rules for RX
packet classification (network 5-tuple filtering configuration) with niu
driver as the first user of this API.
This feature has 3 related patches:
1. An ethtool application patch.
2. A kernel patch for the ethtool interface.
3. A kernel patch for the niu driver that implements the ethtool config
ioctl functions.
Following is a short description of this feature, following the
original proposal posted in Sept '08.
- The ethertool application has a new interface to add a classification
rule and the target RX ring for packets that match the rule. The rules
are added on a per port basis. Each new rule that is added is
represented by a unique ID. This ID has to be used by the user to delete
the rule or query the details of the rule (both interfaces provided via
ethertool).
- Here is the list of cmds/interfaces that have been added to ethertool
(as suboptions in the RX network flow classification option) to achieve
this:
- get the number of RX rings available to this port.
- add a rule (flow-tuple/mask to RX ring mapping)
- delete a rule
- query a particular rule or all rules for this port
- Within ethertool, there is a manager for these rules that orders the
rules on a per port basis using longest prefix first ordering. This
manager assumes low-to-high order for matching the rules in the network
device.
- In the niu driver, there is a local array of the tcam_entries (for
supporting queries from ethertool).
- There is no protection against inconsistencies between the tcam
entries and the user view of it that can arise if multiple instances of
ethertool happen to write the same rule (tcam_entry).
Thanks,
--santwona
next reply other threads:[~2009-02-09 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-09 23:12 Santwona.Behera [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-02-16 17:16 [PATCH 0/3] Add support for RX packet classification in a network device Santwona.Behera
2008-12-22 18:45 Santwona.Behera
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=4990B84B.5040108@Sun.COM \
--to=santwona.behera@sun.com \
--cc=Matheos.Worku@Sun.COM \
--cc=Mehdi.Bonyadi@Sun.COM \
--cc=davem@davemloft.net \
--cc=gkernel-commit@lists.sourceforge.net \
--cc=jeff@garzik.org \
--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;
as well as URLs for NNTP newsgroup(s).