Adrian Chadd 8bde802a2b The users of RSS shouldn't be directly concerned about hash -> CPU ID
mappings.  Instead, they should be first mapping to an RSS bucket and
then querying the RSS bucket -> CPU ID mapping to figure out the target
CPU.

When (if?) RSS rebalancing is implemented or some other (non round-robin)
distribution of work from buckets to CPU IDs, various bits of code - both
userland and kernel - will need to know how this mapping works.

So, to support this:

* Add a new function rss_m2bucket() - this maps an mbuf to a given bucket.
  Anything which is currently doing hash -> CPU work may instead wish to
  do hash -> bucket, and then query the bucket->cpuid map for which
  CPU it belongs on.  Or, map it to a bucket, then re-pin that bucket ->
  CPU during a rebalance operation.

* For userland applications which wish to exploit affinity to RSS buckets,
  the bucket -> CPU ID mapping is now available via a sysctl.
  net.inet.rss.bucket_mapping lists the bucket to CPU ID mapping via
  a list of bucket:cpu pairs.
2014-05-27 08:06:20 +00:00
..
2014-04-07 20:44:00 +00:00
2014-03-31 16:37:41 +00:00
2014-05-27 01:47:23 +00:00
2014-05-21 21:30:00 +00:00
2014-04-17 12:22:08 +00:00
2014-05-15 15:17:44 +00:00
2014-04-30 20:52:38 +00:00
2014-05-22 18:13:17 +00:00
2014-04-05 22:43:18 +00:00
2014-05-15 03:47:52 +00:00