[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141022.161500.808404293313816866.davem@davemloft.net>
Date: Wed, 22 Oct 2014 16:15:00 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: sathya.perla@...lex.com
Cc: netdev@...r.kernel.org, therbert@...gle.com
Subject: Re: [PATCH] net: fix saving TX flow hash in sock for outgoing
connections
From: Sathya Perla <sathya.perla@...lex.com>
Date: Wed, 22 Oct 2014 21:42:01 +0530
> The commit "net: Save TX flow hash in sock and set in skbuf on xmit"
> introduced the inet_set_txhash() and ip6_set_txhash() routines to calculate
> and record flow hash(sk_txhash) in the socket structure. sk_txhash is used
> to set skb->hash which is used to spread flows across multiple TXQs.
>
> But, the above routines are invoked before the source port of the connection
> is created. Because of this all outgoing connections that just differ in the
> source port get hashed into the same TXQ.
>
> This patch fixes this problem for IPv4/6 by invoking the the above routines
> after the source port is available for the socket.
>
> Fixes: b73c3d0e4("net: Save TX flow hash in sock and set in skbuf on xmit")
>
> Signed-off-by: Sathya Perla <sathya.perla@...lex.com>
Applied and queued up for -stable, thanks.
--
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