bus/pci: fix comment explaining device naming
The original triple negative was hard to read and the attempt to improve the formulation was commendable, unfortunately the new comment is the inverse of correct. Fixes: a65a34a85ebf ("eal: replace usage of blacklist/whitelist in enums") Reported-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Gaetan Rivet <grive@u256.net> Acked-by: Luca Boccassi <bluca@debian.org> Reviewed-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
c753160da1
commit
b23fd370cd
@ -68,7 +68,9 @@ pci_name_set(struct rte_pci_device *dev)
|
||||
devargs = pci_devargs_lookup(&dev->addr);
|
||||
dev->device.devargs = devargs;
|
||||
|
||||
/* If the device is blocked, no rte_devargs exists for it. */
|
||||
/* When using a blocklist, only blocked devices will have
|
||||
* an rte_devargs. Allowed devices won't have one.
|
||||
*/
|
||||
if (devargs != NULL)
|
||||
/* If an rte_devargs exists, the generic rte_device uses the
|
||||
* given name as its name.
|
||||
|
Loading…
x
Reference in New Issue
Block a user