Skip to content

: Revamp TX hashing.

David Miller netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4: net: Allow RX queue selection to seed TX queue hashing.include/linux/skbuff.h net/core/dev.c+23 -010 replies
2/4: net: Add skb_record_rx_queue() calls to multiqueue capable drivers.drivers/net/bnx2.c drivers/net/bnx2x_main.c drivers/net/cxgb3/sge.c +8 more+13 -00 replies
3/4: net: If SKB has attached socket, use socket's hash for TX queue selection.net/core/dev.c+7 -00 replies
4/4: net: Get rid of by-hand TX queue hashing.net/core/dev.c+14 -590 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4]: Revamp TX hashing.

The simple_tx_hash() function we currently have in net/core/dev.c is very rudimental and doesn't handle routing and firewall scenerios very well.

The next 4 patches attempt to cure that. The end result is:

1) The RX queue selection of the input device seeds the TX queue selection for that SKB.

2) Locally generated packets seed the TX queue using skb->sk->sk_hash

Then we kill off the by-hand hashing code since in all cases that matter it is no longer necessary.

Protocols that fail to store a proper sk->sk_hash value will need to be fixed up to do so. I encourage anyone so motivated to do that audit :-)