[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1380036564.3165.76.camel@edumazet-glaptop>
Date: Tue, 24 Sep 2013 08:29:24 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Tom Herbert <therbert@...gle.com>
Cc: David Laight <David.Laight@...lab.com>,
David Miller <davem@...emloft.net>,
Linux Netdev List <netdev@...r.kernel.org>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>
Subject: Re: [PATCH 1/2] net: Toeplitz library functions
On Tue, 2013-09-24 at 08:22 -0700, Tom Herbert wrote:
> Assuming skb_rx_hash does symmetric calculation is currently
> incorrect. For instance, looks like tun.c is trying to implement a
> sort of 'flow director' logic to pair TX queues and RX queues using
> skb_get_rxhash an expecting that the value is calculated
> symmetrically. If HW is providing RX hash, this is broken and we'll
> never match the flows. We could either recompute the hash in SW or
> try to match HW hash.
Its not incorrect, its an implementation choice.
Its software in linux, we do not have to care of how its done in
hardware.
This is done to reduce conntracking cost, in case RPS is used on a
router : Same cpu will process frames in both ways.
But conntracking does not 'rely' on rxhash being symmetric, thats an
optimization to have better data locality.
--
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