[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9B0331B6EBBD0E4684FBFAEDA55776F91890EE68@HASMSX110.ger.corp.intel.com>
Date: Tue, 3 Feb 2015 07:33:26 +0000
From: "Rosen, Rami" <rami.rosen@...el.com>
To: David Ahern <dsahern@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Scott Feldman <sfeldma@...il.com>
CC: Netdev <netdev@...r.kernel.org>
Subject: RE: [PATCH] net: rocker: Change netdev names to include slot number
Hi,
>root@f21 ~]# cat /sys/devices/virtual/net/sw5p0/phys_port_id
>cat: /sys/devices/virtual/net/sw5p0/phys_port_id: Operation not supported
Just a side note: commit aecbe01e7410 "net-sysfs: expose physical switch id for particular device" added support for this entry, relying on the fact that the ndo_switch_parent_id_get() is implemented (which seems to be a valid assumption for switch devices) and that the dev_isalive() condition is met.
Could it be that the reason for getting -EOPNOTSUPP was that the ndo_switch_parent_id_get() is not implemented in your switch device or that the condition was not met in your test?
Rami Rosen
Intel Corporation
Powered by blists - more mailing lists