Subject: Re: [PATCH v5 net-next 1/4] rtnetlink: return ENODEV when ifname does not exist and group is given

From: Stephen Hemminger <[email-masked]>
Date: Fri, 15 Apr 2022 12:24:32 -0700

On Fri, 15 Apr 2022 18:53:27 +0200
Florent Fourcot <[email-masked]> wrote:

>  	if (!(nlh->nlmsg_flags & NLM_F_CREATE)) {
> -		if (ifm->ifi_index == 0 && tb[IFLA_GROUP])
> +		/* No dev found and NLM_F_CREATE not set. Requested dev does not exist,
> +		 * or it's for a group
> +		*/
> +		if (link_specified)
> +			return -ENODEV;

Please add extack error message as well?
Simple errno's are harder to debug.