bond: add new multiqueue hash policy
Subsystems (2)
Hello Stephen,
Review
Quoted 12 lines
This hash policy just uses existing transmit hash used for mulitiqueue.
Signed-off-by Stephen Hemminger(quoted diff) +7
-0+/* + * Hash for the output device based on multiqueue transmit hash policy + */ +static u16 bond_xmit_hash_policy_mq(const struct sk_buff *skb) +{ + return skb_tx_hash(skb->dev, skb); +}
I think that it would be better to use something like this here:
return skb_rx_queue_recorded(skb) ? skb_get_rx_queue(skb) : 0;
Bonding is currently non-multiqueue aware and skb_tx_hash() will return zero everytime.
Signature · 1 line
wbr, Oleg.