[PATCH] lib/ethdev: sanity check on callback before resource allocation
Stephen Hemminger
stephen at networkplumber.org
Tue Aug 1 18:19:42 CEST 2023
On Tue, 11 Jul 2023 01:18:09 +0000
Kaiyu Zhang <squirrel.prog at gmail.com> wrote:
> sanity check is performed after a rte_eth_dev object is allocated.
> The object is not freed if the check fails, though in the current
> reality this never happens, but it's better programming paradigm
> to move the quick check up front to the start of
> rte_eth_dev_pci_generic_probe.
>
> Signed-off-by: Kaiyu Zhang <squirrel.prog at gmail.com>
The term sanity check is on the non-inclusive naming word list.
Please don't use that term in DPDK.
There is an outstanding patchset to remove all use of the term.
More information about the dev
mailing list