netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: peter.p.waskiewicz.jr@intel.com
Cc: jeffrey.t.kirsher@intel.com, netdev@vger.kernel.org,
	gospo@redhat.com, deri@ntop.org, joseph.gasparakis@intel.com
Subject: Re: [net-next-2.6 PATCH 3/5] ethtool: Introduce n-tuple filter programming support
Date: Fri, 08 Jan 2010 00:38:33 -0800 (PST)	[thread overview]
Message-ID: <20100108.003833.178515565.davem@davemloft.net> (raw)
In-Reply-To: <Pine.WNT.4.64.1001080028250.15300@ppwaskie-MOBL2.amr.corp.intel.com>

From: "Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@intel.com>
Date: Fri, 8 Jan 2010 00:34:23 -0800 (Pacific Standard Time)

> Yes, I left that in there somewhat accidentally.  I had every intention in 
> putting a get routine in, but I couldn't come up with a generic way to 
> work with most hardware (how to get all filters back and dump them).  The 
> 82599 needs to query the hardware for each filter currently programmed, 
> and I'm not sure what the niu hardware layout is for the filters.

NIU simply has a TCAM array that you can read the values back from.

> I can remove the get stubs for now, since I have no good solution to dump 
> the filters that is generic.

For hardware where it's difficult to read the values back, you
can maintain a copy of the current filters in software.

Just an idea.  If you need you'll need something like this for
multiple drivers already, probably we can put the helper code
into ethtool.c and just maintain a software copy in the kernel
for all devices.  Even one's for which fetching is straightforward.

And anyways, I can't see this being a usable interface if the current
set of filters can't be queried by the user.

  reply	other threads:[~2010-01-08  8:38 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07  4:48 [net-next-2.6 PATCH 1/5] ixgbe: Allocate driver resources per NUMA node Jeff Kirsher
2010-01-07  4:48 ` [net-next-2.6 PATCH 2/5] ixgbe: Make descriptor ring allocations NUMA-aware Jeff Kirsher
2010-01-08  8:21   ` David Miller
2010-01-08  8:25     ` Waskiewicz Jr, Peter P
2010-01-08  8:31       ` David Miller
2010-01-08  8:36         ` Waskiewicz Jr, Peter P
2010-01-07  4:49 ` [net-next-2.6 PATCH 3/5] ethtool: Introduce n-tuple filter programming support Jeff Kirsher
2010-01-08  8:23   ` David Miller
2010-01-08  8:34     ` Waskiewicz Jr, Peter P
2010-01-08  8:38       ` David Miller [this message]
2010-01-08  8:42         ` Waskiewicz Jr, Peter P
2010-01-11 19:32   ` Ben Hutchings
2010-01-12 19:13     ` Waskiewicz Jr, Peter P
2010-01-21  2:54       ` David Miller
2010-01-07  4:49 ` [net-next-2.6 PATCH 4/5] ixgbe: Add Flow Director configuration support as a mod parameter Jeff Kirsher
2010-01-08  8:24   ` David Miller
2010-01-08  8:28     ` Waskiewicz Jr, Peter P
2010-01-08  8:32       ` David Miller
2010-01-08  8:36         ` Waskiewicz Jr, Peter P
2010-01-07  4:49 ` [net-next-2.6 PATCH 5/5] ixgbe: Add support for the new ethtool n-tuple programming interface Jeff Kirsher
2010-01-08  8:26   ` David Miller
2010-01-14 11:02 ` [net-next-2.6 PATCH 1/5] ixgbe: Allocate driver resources per NUMA node Andi Kleen
2010-01-19 16:10   ` Waskiewicz Jr, Peter P
2010-01-19 19:34     ` Andi Kleen
2010-01-19 19:34       ` Waskiewicz Jr, Peter P

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=20100108.003833.178515565.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=deri@ntop.org \
    --cc=gospo@redhat.com \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=joseph.gasparakis@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=peter.p.waskiewicz.jr@intel.com \
    /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).