All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: loopback and /sys/class/net/*/operstate
@ 2019-12-12 14:05 Ulrich Windl
  0 siblings, 0 replies; only message in thread
From: Ulrich Windl @ 2019-12-12 14:05 UTC (permalink / raw)
  To: netdev

Hi!

Seeing "state UNKNOWN" in output of "ip addr sh" for loopback, I noticed that /sys/class/net/lo/operstate contains "unknown".
To me it seems that /usr/src/linux/drivers/net/loopback.c does not set up operstate of struct net_device.

Seen in 4.12.14-95.37-default (SLES12 SP4). My personal guess is that the struct was enhanced, and it was forgotten to upgrade loopback.c.

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000

Kind regards,
Ulrich





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-12 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12 14:05 Q: loopback and /sys/class/net/*/operstate Ulrich Windl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.