From: Eric Dumazet Date: Fri, 1 May 2009 16:05:06 +0000 (-0700) Subject: net: Fix skb_tx_hash() for forwarding workloads. X-Git-Tag: v2.6.30-rc5~39^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec581f6a42bbbea5271c66da9769a41b46c74e10;p=pandora-kernel.git net: Fix skb_tx_hash() for forwarding workloads. When skb_rx_queue_recorded() is true, we dont want to use jash distribution as the device driver exactly told us which queue was selected at RX time. jhash makes a statistical shuffle, but this wont work with 8 static inputs. Later improvements would be to compute reciprocal value of real_num_tx_queues to avoid a divide here. But this computation should be done once, when real_num_tx_queues is set. This needs a separate patch, and a new field in struct net_device. Reported-by: Andrew Dickinson Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed