[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100714.153351.226785072.davem@davemloft.net>
Date: Wed, 14 Jul 2010 15:33:51 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: skb_tx_hash() fix relative to skb_orphan_try()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Tue, 13 Jul 2010 17:24:20 +0200
> commit fc6055a5ba31e2 (net: Introduce skb_orphan_try()) added early
> orphaning of skbs.
>
> This unfortunately added a performance regression in skb_tx_hash() in
> case of stacked devices (bonding, vlans, ...)
>
> Since skb->sk is now NULL, we cannot access sk->sk_hash anymore to
> spread tx packets to multiple NIC queues on multiqueue devices.
>
> skb_tx_hash() in this case only uses skb->protocol, same value for all
> flows.
>
> skb_orphan_try() can copy sk->sk_hash into skb->rxhash and skb_tx_hash()
> can use this saved sk_hash value to compute its internal hash value.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists