netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [RFC 4/4] bond: add new multiqueue hash policy
@ 2010-02-19 17:54 "Oleg A. Arkhangelsky"
  0 siblings, 0 replies; 2+ messages in thread
From: "Oleg A. Arkhangelsky" @ 2010-02-19 17:54 UTC (permalink / raw)
  To: netdev

Hello Stephen,

> This hash policy just uses existing transmit hash used for
> mulitiqueue.

> Signed-off-by: Stephen Hemminger

> +/*
> + * 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.

-- 
wbr, Oleg.

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [RFC 0/4] bond hashing revised
@ 2010-02-04 17:11 Stephen Hemminger
  2010-02-04 17:11 ` [RFC 4/4] bond: add new multiqueue hash policy Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2010-02-04 17:11 UTC (permalink / raw)
  To: David Miller, Jay Vosburgh; +Cc: netdev, bonding-devel

These have not been tested yet. I need to try them with some
different flows/hardware to validate.

-- 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-19 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19 17:54 [RFC 4/4] bond: add new multiqueue hash policy "Oleg A. Arkhangelsky"
  -- strict thread matches above, loose matches on Subject: below --
2010-02-04 17:11 [RFC 0/4] bond hashing revised Stephen Hemminger
2010-02-04 17:11 ` [RFC 4/4] bond: add new multiqueue hash policy Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).