I have to agree with Eric and Changli here.
It's especially true if you're passively tracking via one NIC, where all
traffic is just forwarded.
In this scenario, you need to compute consistent hashes. rxhashes by NIC
will be different for
"incoming" and "outgoing" traffic...
Where rxhash by NIC can be used (note: didn't say _useful_) are
scenarios with different net
ports for incoming and outgoing traffic (in active but also passive
traffic scenarios). Here,
rxhashes could be used on a per-port basis, but associating two
seemingly separate rxhashes
with one another to match CPUs is a really annoying task. This would
involve computing the
corresponding "txhash" and looking it up, which is what we'd be doing
with the jhash anyway.
For proper flow tracking Eric's suggestion is the way to go. And if
there are worries about
collisions, why not add IPPROTO_* to the mix.
Franco
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html