Re: Receive Traffic Distribution (Was RE: [PATCH] TCP Offload (TOE) - Chelsio_

2005-08-22 Thread David S. Miller
From: Andi Kleen [EMAIL PROTECTED] Date: Mon, 22 Aug 2005 03:34:16 +0200 In theory the NIC could store it in a separate data structure, but that would be wasteful IMHO because it would duplicate what a socket does. So it's best to add a last_rcv_cpu field to the struct sock and make sure the

Re: Receive Traffic Distribution (Was RE: [PATCH] TCP Offload (TOE) - Chelsio_

2005-08-22 Thread Andi Kleen
Another approach would be: 1) Determine that we don't care about the callback (ie. it gets reset to NULL) when the skb-dev changes, as would occur for forwarding, and certain kinds of firewalling and classification actions. 2) As a result of #1 we can put the callback into the

Re: Receive Traffic Distribution (Was RE: [PATCH] TCP Offload (TOE) - Chelsio_

2005-08-22 Thread Andi Kleen
On Sun, 21 Aug 2005 16:19:26 -0700 (PDT) David S. Miller [EMAIL PROTECTED] wrote: From: Andi Kleen [EMAIL PROTECTED] Date: Mon, 22 Aug 2005 01:13:21 +0200 Basically, you'll have skb-free_callback(skb, ARG), and skb-free_callback_ARG. And when the SKB and it's memory is about to get

Receive Traffic Distribution (Was RE: [PATCH] TCP Offload (TOE) - Chelsio_

2005-08-21 Thread Leonid Grossman
-Original Message- From: Andi Kleen [mailto:[EMAIL PROTECTED] Sent: Sunday, August 21, 2005 9:36 AM To: David S. Miller Cc: Leonid Grossman; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];

Re: Receive Traffic Distribution (Was RE: [PATCH] TCP Offload (TOE) - Chelsio_

2005-08-21 Thread David S. Miller
From: Leonid Grossman [EMAIL PROTECTED] Date: Sun, 21 Aug 2005 13:02:00 -0400 Andi, can you provide a callback patch please? Andi isn't very active in the networking these days, so asking him to do the work whilst he's so busy with x86_64 maintainence isn't the best idea :) We'll be adding