From 088bf1dcc32fcd26dac312a5561e0f263fa401d9 Mon Sep 17 00:00:00 2001 From: Vladimir Ratnikov Date: Thu, 28 Jan 2021 11:08:35 -0500 Subject: dpdk: use whole vmbus address as hash key for devconf u32[0] is not enough unique for some platforms like azure where several devices(not only network) can have almost the same addresses and this can cause collisions. Change hash to mhash type for vmbus devices with key of whole 16 bytes of vmbus address. Type: improvement Signed-off-by: Vladimir Ratnikov Change-Id: Ic6c6a657ae29f45beddd0c69d8e785e702349460 --- src/plugins/dpdk/device/dpdk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/dpdk/device/dpdk.h') diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h index 3712015d438..be8c47b5128 100644 --- a/src/plugins/dpdk/device/dpdk.h +++ b/src/plugins/dpdk/device/dpdk.h @@ -317,12 +317,12 @@ typedef struct dpdk_device_config_t default_devconf; dpdk_device_config_t *dev_confs; uword *device_config_index_by_pci_addr; - uword *device_config_index_by_vmbus_addr; + mhash_t device_config_index_by_vmbus_addr; /* devices blacklist by pci vendor_id, device_id */ u32 *blacklist_by_pci_vendor_and_device; /* devices blacklist by VMBUS address */ - u32 *blacklist_by_vmbus_addr; + vlib_vmbus_addr_t *blacklist_by_vmbus_addr; } dpdk_config_main_t; -- cgit 1.2.3-korg