From: Herbert Xu <herbert@gondor.apana.org.au> Date: Fri, 22 Aug 2008 17:41:15 +1000I had another idea in the back of my head that I wanted to mention. The SKB has a hash, and sources set the hash. It doesn't matter where in the stack it comes from. At transmit time, the select queue logic in dev_queue_xmit() will use the SKB hash if one has been set already. Otherwise it will do the hashing it does currently. So in the simplest case for forwarding, the RX side puts the RSS hash or whatever into this SKB hash location. Then, taking things to the next level, protocols set hashes for locally created packets. And this leads to being able to delete the simple_tx_hash() code entirely and also we won't have to add support for every protocol on the planet to that function. :) TCP sockets maybe could even do something clever, like, using the incoming SKB hash of the SYN and SYN+ACK packets for all subsequent SKBs sent by that socket. Another nice side effect, we have the choice of allowing IPSEC encapsulation of locally generated frames to not change the TX queue. This would have to be controlled by a sysctl or similar because I can see both ways being useful in different circumstances. You get the idea. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Rafael J. Wysocki | Re: Linux 2.6.27-rc5: System boot regression caused by commit a2bd7274b47124d2fc4d... |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
