RE: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread Haiyang Zhang
redhat.com; linux-ker...@vger.kernel.org; driverdev- > de...@linuxdriverproject.org > Subject: Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side > Scaling (vRSS) > > I posted an implementation of library functions for Toeplitz (see [PATCH 1/2] > net: Toeplitz libr

RE: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread Haiyang Zhang
redhat.com; linux-ker...@vger.kernel.org; driverdev- > de...@linuxdriverproject.org > Subject: Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side > Scaling (vRSS) > > Patch is below. This version did most pre-computation of the variants I built, > but results in lar

Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread David Miller
From: Tom Herbert Date: Thu, 19 Dec 2013 13:43:06 -0800 > + u32 v, r; > + int off, rem; > + > + off = idx / 8; > + rem = idx % 8; > + > + v = (((unsigned int)key[off]) << 24) + > + (((unsigned int)key[off + 1]) << 16) + > + (((unsigned int)key[off

Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread Ben Hutchings
On Thu, 2013-12-19 at 13:43 -0800, Tom Herbert wrote: > Patch is below. This version did most pre-computation of the variants > I built, but results in largest table (40*256*4 bytes), This gives > performance roughly comparable with jhash (roughly same as jhash for > IPv4, about 30% more cycles for

RE: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread Haiyang Zhang
..@vger.kernel.org; > driverdev-devel@linuxdriverproject.org > Subject: Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side > Scaling (vRSS) > > On Wed, 2013-12-18 at 14:21 -0800, Haiyang Zhang wrote: > > This feature allows multiple channels to be used by each virtual NIC. &

RE: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread Haiyang Zhang
.com; linux- > ker...@vger.kernel.org; driverdev-devel@linuxdriverproject.org > Subject: Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side > Scaling (vRSS) > > On 12/19/2013 07:36 PM, Haiyang Zhang wrote: > > > Thank you for the suggestions! I will re-write the send queue &

Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread Daniel Borkmann
On 12/19/2013 07:36 PM, Haiyang Zhang wrote: Thank you for the suggestions! I will re-write the send queue selection, enhance the hash calculation, also fix the initialization sequence. Btw, Toeplitz hash function should either go into lib/hash.c as well or include/linux/hash.h to avoid ending

Re: [PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-19 Thread Ben Hutchings
On Wed, 2013-12-18 at 14:21 -0800, Haiyang Zhang wrote: > This feature allows multiple channels to be used by each virtual NIC. > It is available on Hyper-V host 2012 R2. [...] > --- a/drivers/net/hyperv/netvsc.c > +++ b/drivers/net/hyperv/netvsc.c [...] > @@ -525,15 +535,21 @@ int netvsc_send(stru

[PATCH net-next] hyperv: Add support for Virtual Receive Side Scaling (vRSS)

2013-12-18 Thread Haiyang Zhang
This feature allows multiple channels to be used by each virtual NIC. It is available on Hyper-V host 2012 R2. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- drivers/net/hyperv/hyperv_net.h | 159 ++ drivers/net/hyperv/netvsc.c | 120 +++