numam-dpdk/lib/librte_pci
Gaetan Rivet 8354e681e3 pci: explain how empty strings are rejected in DBDF
Empty strings are forbidden as input to rte_pci_addr_parse().
It is explicitly enforced in BDF parsing as parsing the bus
field will immediately fail. The related check is commented.

It is implicitly enforced in DBDF parsing, as the domain would be
parsed to 0 without error, but the check `end[0] != ':'` afterward
will return -EINVAL.

Enforcing consistency between parsers by reading the code is not helped
by this property being implicit. Add a comment to explain.

Signed-off-by: Gaetan Rivet <grive@u256.net>
Acked-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2020-05-19 11:18:38 +02:00
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build build: remove individual library versions 2019-11-20 23:05:39 +01:00
rte_pci_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
rte_pci.c pci: explain how empty strings are rejected in DBDF 2020-05-19 11:18:38 +02:00
rte_pci.h pci: fix build on FreeBSD 2020-03-17 10:10:15 +01:00