aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.h
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/vnet/interface.h
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/vnet/interface.h')
-rw-r--r--src/vnet/interface.h4
1 files changed, 4 insertions, 0 deletions
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;