netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Add support for rx flow hash configuration in a network device
@ 2008-06-28  0:06 Santwona Behera
  2008-06-29 12:17 ` Andi Kleen
  2008-07-02 10:50 ` David Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Santwona Behera @ 2008-06-28  0:06 UTC (permalink / raw)
  To: netdev, davem, jeff
  Cc: Matheos.Worku, Michael.Speer, gkernel-commit, Santwona.Behera

Added new interface to ethtool to configure receive network flow 
classification. This patch adds support for flow distribution using 
hashing where the device can be configured with the fields in the 
receive packet to hash onto one of the multiple Rx rings.

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. NOTE: The niu driver already has rx flow hashing 
implemented. With these 3 patches, this feature is now configurable 
using ethtool.

Thanks!

--santwona

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/3] Add support for rx flow hash configuration in a network device
  2008-06-28  0:06 [PATCH 0/3] Add support for rx flow hash configuration in a network device Santwona Behera
@ 2008-06-29 12:17 ` Andi Kleen
  2008-06-29 20:49   ` David Miller
  2008-07-02 10:50 ` David Miller
  1 sibling, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2008-06-29 12:17 UTC (permalink / raw)
  To: Santwona Behera
  Cc: netdev, davem, jeff, Matheos.Worku, Michael.Speer, gkernel-commit

Santwona Behera <Santwona.Behera@Sun.COM> writes:

> Added new interface to ethtool to configure receive network flow
> classification. This patch adds support for flow distribution using
> hashing where the device can be configured with the fields in the
> receive packet to hash onto one of the multiple Rx rings.
>
> 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. NOTE: The niu driver already has rx flow
> hashing implemented. With these 3 patches, this feature is now
> configurable using ethtool.

Are you sure ethtool is the right interface for this?

Me thinks the kernel should just do the right thing automatically
for this, by distributing the flows over CPUs.

-Andi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/3] Add support for rx flow hash configuration in a network device
  2008-06-29 12:17 ` Andi Kleen
@ 2008-06-29 20:49   ` David Miller
  2008-06-30  0:15     ` Andi Kleen
  2008-07-01  3:33     ` Roland Dreier
  0 siblings, 2 replies; 7+ messages in thread
From: David Miller @ 2008-06-29 20:49 UTC (permalink / raw)
  To: andi
  Cc: Santwona.Behera, netdev, jeff, Matheos.Worku, Michael.Speer,
	gkernel-commit

From: Andi Kleen <andi@firstfloor.org>
Date: Sun, 29 Jun 2008 14:17:56 +0200

> Are you sure ethtool is the right interface for this?

Yes.

> Me thinks the kernel should just do the right thing automatically
> for this, by distributing the flows over CPUs.

How the work, and what kind of work, should be distributed across the
machine is the user's business.

Or maybe we should just get rid of all of those NUMA knobs we have
too?

We've discussed this before and Jeff Garzik and I already told
everyone that we want to make this configurable and ethtool is
the way to do it no matter how adhoc and device specific the
interfaces might end up being.

Please don't send submitters mixed messages like this after we've
told them to do things this way, it only leads to discouragement
for new contributors.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/3] Add support for rx flow hash configuration in a network device
  2008-06-29 20:49   ` David Miller
@ 2008-06-30  0:15     ` Andi Kleen
  2008-07-01  3:33     ` Roland Dreier
  1 sibling, 0 replies; 7+ messages in thread
From: Andi Kleen @ 2008-06-30  0:15 UTC (permalink / raw)
  To: David Miller
  Cc: andi, Santwona.Behera, netdev, jeff, Matheos.Worku, Michael.Speer,
	gkernel-commit

> Please don't send submitters mixed messages like this after we've

Sorry must have missed the official bulletin on the latest party line.

> told them to do things this way, it only leads to discouragement
> for new contributors.

I suspect "adhoc and device specific interfaces" like you are
advocating will finally lead to discouragement of end users. 
But it is your choice.

-Andi


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/3] Add support for rx flow hash configuration in a network device
  2008-06-29 20:49   ` David Miller
  2008-06-30  0:15     ` Andi Kleen
@ 2008-07-01  3:33     ` Roland Dreier
  2008-07-01  4:42       ` David Miller
  1 sibling, 1 reply; 7+ messages in thread
From: Roland Dreier @ 2008-07-01  3:33 UTC (permalink / raw)
  To: David Miller
  Cc: andi, Santwona.Behera, netdev, jeff, Matheos.Worku, Michael.Speer,
	gkernel-commit

 > We've discussed this before and Jeff Garzik and I already told
 > everyone that we want to make this configurable and ethtool is
 > the way to do it no matter how adhoc and device specific the
 > interfaces might end up being.

I think it was a few weeks ago that Jeff said:

  I know user interfaces are annoying because you have to think about 
  chips other than your own, but that's life.  Other hardware vendors have 
  to do it too.

  Letting each driver have a different user interface is /unfriendly/ to 
  both developers users.

I guess as long as you stick an "ethtool" in front of the different
interfaces it all becomes OK.

 - R.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/3] Add support for rx flow hash configuration in a network device
  2008-07-01  3:33     ` Roland Dreier
@ 2008-07-01  4:42       ` David Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2008-07-01  4:42 UTC (permalink / raw)
  To: rdreier
  Cc: andi, Santwona.Behera, netdev, jeff, Matheos.Worku, Michael.Speer,
	gkernel-commit

From: Roland Dreier <rdreier@cisco.com>
Date: Mon, 30 Jun 2008 20:33:45 -0700

>  > We've discussed this before and Jeff Garzik and I already told
>  > everyone that we want to make this configurable and ethtool is
>  > the way to do it no matter how adhoc and device specific the
>  > interfaces might end up being.
> 
> I think it was a few weeks ago that Jeff said:
> 
>   I know user interfaces are annoying because you have to think about 
>   chips other than your own, but that's life.  Other hardware vendors have 
>   to do it too.
> 
>   Letting each driver have a different user interface is /unfriendly/ to 
>   both developers users.
> 
> I guess as long as you stick an "ethtool" in front of the different
> interfaces it all becomes OK.

This interface we're talking about is in fact not all that device
specific, and it's extensible so that we can describe different types
of flow hashing types if so needed to support other chips.

Currently Sun's Neptune is the only one that offers so many options,
and to be honest I expect other implementations to be subsets of what
Neptune can do.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/3] Add support for rx flow hash configuration in a network device
  2008-06-28  0:06 [PATCH 0/3] Add support for rx flow hash configuration in a network device Santwona Behera
  2008-06-29 12:17 ` Andi Kleen
@ 2008-07-02 10:50 ` David Miller
  1 sibling, 0 replies; 7+ messages in thread
From: David Miller @ 2008-07-02 10:50 UTC (permalink / raw)
  To: Santwona.Behera
  Cc: netdev, jeff, Matheos.Worku, Michael.Speer, gkernel-commit

From: Santwona Behera <Santwona.Behera@Sun.COM>
Date: Fri, 27 Jun 2008 17:06:16 -0700

> 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. NOTE: The niu driver already has rx flow hashing 
> implemented. With these 3 patches, this feature is now configurable 
> using ethtool.

Thanks for doing this work Santwona.

I've applied patch 2 and 3 to my net-next-2.6 kernel tree.

I spoke with Jeff Garzik, and he will add your first patch
to the ethtool tree when he gets a chance.

Thanks again!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-02 10:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-28  0:06 [PATCH 0/3] Add support for rx flow hash configuration in a network device Santwona Behera
2008-06-29 12:17 ` Andi Kleen
2008-06-29 20:49   ` David Miller
2008-06-30  0:15     ` Andi Kleen
2008-07-01  3:33     ` Roland Dreier
2008-07-01  4:42       ` David Miller
2008-07-02 10:50 ` David Miller

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).