[dpdk-dev] [PATCH v1 1/3] net/failsafe: avoid crash on malformed eth_dev

Ferruh Yigit ferruh.yigit at intel.com
Wed May 6 19:16:41 CEST 2020


On 5/5/2020 8:10 PM, Gaetan Rivet wrote:
> Some PMD do not respect the eth_dev API when allocating their
> rte_eth_dev. As a result, on device add event resulting from
> rte_eth_dev_probing_finish() call, the eth_dev processed is incomplete.
> 
> The segfault is a good way to focus the developer on the issue, but does
> not inspire confidence. Instead, warn the user of the error repeatedly.
> 
> The failsafe PMD can warn of the issue and continue. It will repeatedly
> attempt to initialize the failed port and complain about it, which
> should result in the same developer focus but with less crashing.
> 
> Signed-off-by: Gaetan Rivet <grive at u256.net>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list