summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2019-05-15 04:25:20 -0400
committerJohn Lo <loj@cisco.com>2019-05-31 00:55:27 +0000
commit6865d3c2ac01d78a2f313c4fb3e74cf409328e58 (patch)
treedd836b0201e21d93a5198c818cf06c7531d643f6 /src/plugins/dpdk
parent63d4d1d6e488d9b985000bdeed0c9c8f6854236a (diff)
bonding: add support for numa awareness
This patch enables bonding numa awareness on multi-socket server working in active-backeup mode. The VPP adds capability for automatically preferring slave with local numa node in order to reduces the load on the QPI-bus and improve system overall performance in multi-socket use cases. Users doesn't need to add any extra operation as usual. Change-Id: Iec267375fc399a9a0c0a7dca649fadb994d36671 Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src/plugins/dpdk')
-rw-r--r--src/plugins/dpdk/device/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index fccefb17b4d..2e4c8a22743 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -732,6 +732,7 @@ dpdk_lib_init (dpdk_main_t * dm)
{
hi->max_packet_bytes = mtu;
hi->max_supported_packet_bytes = max_rx_frame;
+ hi->numa_node = xd->cpu_socket;
}
if (dm->conf->no_tx_checksum_offload == 0)