dpdk: use whole vmbus address as hash key for devconf 96/30996/5
authorVladimir Ratnikov <vratnikov@netgate.com>
Thu, 28 Jan 2021 16:08:35 +0000 (11:08 -0500)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 12 Feb 2021 19:30:14 +0000 (19:30 +0000)
commit088bf1dcc32fcd26dac312a5561e0f263fa401d9
treeaf8070c449399de0fb9ab0689882342c197d0a16
parentbbccdc583c91c21ee4caf9043845468cd758ca9f
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 <vratnikov@netgate.com>
Change-Id: Ic6c6a657ae29f45beddd0c69d8e785e702349460
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/init.c