On Thu, 24 Jul 2025 19:21:18 +0530 Vivek.Pernamitta@quicinc.com wrote:
quoted hunk ↗ jump to hunk
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.