FreeBSD/src 7687707 (r346579)share/man/man9 ifnet.9 Makefile, sys/dev/cxgbe t4_main.c

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
DeltaFile
+35-1share/man/man9/ifnet.9
+30-3sys/net/if.c
+4-1sys/net/if_var.h
+2-0share/man/man9/Makefile
+1-1sys/dev/cxgbe/t4_main.c
+1-1sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+73-76 files

UnifiedSplitRaw