dpdk: fix blacklists 18/28418/5
authorVladimir Ratnikov <vratnikov@netgate.com>
Fri, 14 Aug 2020 12:25:30 +0000 (08:25 -0400)
committerVladimir Ratnikov <vratnikov@netgate.com>
Thu, 27 Aug 2020 08:25:56 +0000 (08:25 +0000)
commited04407829728c5d258b6600155edabd5198d971
tree575053762ee9c5722cd797e4979208dfe66ea02a
parenta3b7c554c669afc627f9a1e32666211bb6fb6b25
dpdk: fix blacklists

When we have both format blacklisted devices like:
blacklist 1234:5678
blacklist 1234:56:78.0

unformat with fmt=%x:%x matches for both strings
 and the rest 78.0 substring is kept in input
 and it can't be parsed for init args

This patch checks first if device format matches PCI address and
 just then if it matches Vendor and Product

Type: fix
Change-Id: If111762c0e0a424b052e4f6dc0f67731bf89dc2a
Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com>
src/plugins/dpdk/device/dpdk_priv.h
src/plugins/dpdk/device/init.c