diff options
author | Vladimir Ratnikov <vratnikov@netgate.com> | 2020-08-14 08:25:30 -0400 |
---|---|---|
committer | Vladimir Ratnikov <vratnikov@netgate.com> | 2020-08-27 08:25:56 +0000 |
commit | ed04407829728c5d258b6600155edabd5198d971 (patch) | |
tree | 575053762ee9c5722cd797e4979208dfe66ea02a /src/plugins/dpdk/device/dpdk_priv.h | |
parent | a3b7c554c669afc627f9a1e32666211bb6fb6b25 (diff) |
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>
Diffstat (limited to 'src/plugins/dpdk/device/dpdk_priv.h')
-rw-r--r-- | src/plugins/dpdk/device/dpdk_priv.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/dpdk_priv.h b/src/plugins/dpdk/device/dpdk_priv.h index a86a1aba7ec..64cd10dc23d 100644 --- a/src/plugins/dpdk/device/dpdk_priv.h +++ b/src/plugins/dpdk/device/dpdk_priv.h @@ -37,7 +37,6 @@ _(coremask, c) \ _(nchannels, n) \ #define foreach_eal_single_hyphen_arg \ -_(blacklist, b) \ _(mem-alloc-request, m) \ _(force-ranks, r) |