]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Select lacp egress ports based on NUMA domain
authorgallatin <gallatin@FreeBSD.org>
Fri, 3 May 2019 14:43:21 +0000 (14:43 +0000)
committergallatin <gallatin@FreeBSD.org>
Fri, 3 May 2019 14:43:21 +0000 (14:43 +0000)
commitdded2b1735016ce23fb6f819edc96a79c0b54100
tree3527fe1f2652f97a7daf8ea64a9b78c49f5220f1
parentc96e16b3a6431863b21829b775407aa13e0f3446
Select lacp egress ports based on NUMA domain

This change creates an array of port maps indexed by numa domain
for lacp port selection. If we have lacp interfaces in more than
one domain, then we select the egress port by indexing into the
numa port maps and picking a port on the appropriate numa domain.

This is behavior is controlled by the new ifconfig use_numa flag
and net.link.lagg.use_numa sysctl/tunable (both modeled after the
existing use_flowid), which default to enabled.

Reviewed by: bz, hselasky, markj (and scottl, earlier version)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D20060
sbin/ifconfig/ifconfig.8
sbin/ifconfig/iflagg.c
sys/net/ieee8023ad_lacp.c
sys/net/ieee8023ad_lacp.h
sys/net/if_lagg.c
sys/net/if_lagg.h