Re: [PATCH 2/4] net: mhi : Add support to enable ethernet interface

From: Jakub Kicinski
Date: Fri Jul 25 2025 - 20:11:16 EST


On Thu, 24 Jul 2025 19:21:18 +0530 Vivek.Pernamitta@xxxxxxxxxxx wrote:
> ndev = alloc_netdev(sizeof(struct mhi_net_dev), netname,
> - NET_NAME_PREDICTABLE, mhi_net_setup);
> + NET_NAME_PREDICTABLE, info->ethernet_if ?
> + mhi_ethernet_setup : mhi_net_setup);

Similar story, if it's an Ethernet device is should be called eth%d
and user space can name it whatever it wants based on the full sysfs
attribute set.

For n-th time in our history we discover that having the kernel create
"predictable" names always falls short, sigh.