From 6865d3c2ac01d78a2f313c4fb3e74cf409328e58 Mon Sep 17 00:00:00 2001 From: Zhiyong Yang Date: Wed, 15 May 2019 04:25:20 -0400 Subject: 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 --- src/vnet/interface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vnet/interface.h') diff --git a/src/vnet/interface.h b/src/vnet/interface.h index c32311c86ac..d87de60bceb 100644 --- a/src/vnet/interface.h +++ b/src/vnet/interface.h @@ -565,6 +565,10 @@ typedef struct vnet_hw_interface_t /* device input device_and_queue runtime index */ uword *dq_runtime_index_by_queue; + /* numa node that hardware device connects to */ + u8 numa_node; + + u8 padding[3]; } vnet_hw_interface_t; extern vnet_device_class_t vnet_local_interface_device_class; -- cgit 1.2.3-korg