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

From
Jakub Kicinski <kuba@kernel.org>
Date
2025-07-26 00:10:54
Also in
linux-arm-msm, lkml
Reply to
unknown sender, 2025-07-24
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.
Thread (8 messages) 8 messages, 3 authors, last reply 2025-07-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help