Re: [PATCH v2 net-next 0/2] net: print net_device name/state more often

From
Tom Gundersen <hidden>
Date
2014-07-17 15:25:44
Reply to
David Laight, 2014-07-17
On Thu, Jul 17, 2014 at 4:48 PM, David Laight [off-list ref] wrote:
From: Veaceslav Falico
quoted
Currently we use net_device->name only if it's the NETREG_REGISTERED
reg_state, otherwise we return "(unregistered device)".

However, we always populate net_device->name on creation, so it's always
available to us for use. The only caveat is that we might have a name like
"eth%d", in which case we cannot use it as it might change in the future.
While you've got this code out on the operating table what about:
1) Tracing the renames into the kernel message buffer.
udev will log to dmesg what renames it does. I agree it would make
more sense to do this from the kernel though, as there are other ways
to rename interfaces than through udev.

Cheers,

Tom
2) Including the original name in some of the kernel traces.

I've been trying to diagnose some issues on a system that renames
its interfaces, and it can get tricky working out which interface
messages refer to.
Thread (15 messages) 15 messages, 4 authors, last reply 2014-07-17
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