[PATCH] net/failsafe: Fix crash due to in-valid sub-device port id

Stephen Hemminger stephen at networkplumber.org
Wed Nov 16 18:51:36 CET 2022


On Wed, 16 Nov 2022 15:22:24 +0530
madhuker.mythri at oracle.com wrote:

>  
> +			if (!rte_eth_dev_is_valid_port(PORT_ID(sdev))) {
> +				continue;
> +			}
> +

Looks ok but DPDK follows kernel style {} is unnecessary on single statement.
Checkpatch will give you warnings on this.


More information about the dev mailing list