]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Select lacp egress ports based on NUMA domain
authorAndrew Gallatin <gallatin@FreeBSD.org>
Fri, 3 May 2019 14:43:21 +0000 (14:43 +0000)
committerAndrew Gallatin <gallatin@FreeBSD.org>
Fri, 3 May 2019 14:43:21 +0000 (14:43 +0000)
commit35961dce98962be68727f6801d67cc8495546614
tree3527fe1f2652f97a7daf8ea64a9b78c49f5220f1
parent2f5cff37506aaa5d4ebf53560981899efadcc5e2
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