gallatin accdb3810d Track device's NUMA domain in ifnet & alloc ifnet from NUMA local memory
This commit adds new if_alloc_domain() and if_alloc_dev() methods to
allocate ifnets.  When called with a domain on a NUMA machine,
ifalloc_domain() will record the NUMA domain in the ifnet, and it will
allocate the ifnet struct from memory which is local to that NUMA
node.  Similarly, if_alloc_dev() is a wrapper for if_alloc_domain
which uses a driver supplied device_t to call ifalloc_domain() with
the appropriate domain.

Note that the new if_numa_domain field fits in an alignment pad in
struct ifnet, and so does not alter the size of the structure.

Reviewed by:	glebius, kib, markj
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D19930
2019-04-22 19:24:21 +00:00
..
2018-11-26 19:39:49 +00:00
2018-11-26 19:39:49 +00:00
2019-04-22 17:52:46 +00:00
2019-04-17 14:20:55 +00:00
2018-11-26 19:39:49 +00:00
2018-11-26 19:39:49 +00:00
2018-11-26 19:39:49 +00:00
2018-06-27 19:29:15 +00:00
2019-02-12 05:15:36 +00:00
2018-12-11 02:14:40 +00:00
2019-04-22 17:52:46 +00:00