From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: [patch net-next v2 0/3] export device physical port id to userspace Date: Sat, 20 Jul 2013 19:53:51 +0200 Message-ID: <1374342834-10814-1-git-send-email-jiri@resnulli.us> Cc: davem@davemloft.net, stephen@networkplumber.org, Narendra_K@Dell.com, bhutchings@solarflare.com, john.r.fastabend@intel.com To: netdev@vger.kernel.org Return-path: Received: from mail-ee0-f47.google.com ([74.125.83.47]:41798 "EHLO mail-ee0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632Ab3GTRyC (ORCPT ); Sat, 20 Jul 2013 13:54:02 -0400 Received: by mail-ee0-f47.google.com with SMTP id e49so2936505eek.6 for ; Sat, 20 Jul 2013 10:54:00 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: This patchset is based on patch by Narendra_K@Dell.com Once device which can change phys port id during its lifetime adopts this, NETDEV_CHANGEPHYSPORTID event will be added and driver will call call_netdevice_notifiers(NETDEV_NETDEV_CHANGEPHYSPORTID, dev) to propagate the change to userspace. v1->v2: as suggested by Ben, handle -EOPNOTSUPP in rtnl code (wrapped up ndo call) Jiri Pirko (3): net: add ndo to get id of physical port of the device rtnl: export physical port id via RT netlink net: export physical port id via sysfs include/linux/netdevice.h | 20 ++++++++++++++++++++ include/uapi/linux/if_link.h | 1 + net/core/dev.c | 18 ++++++++++++++++++ net/core/net-sysfs.c | 42 ++++++++++++++++++++++++++++++++++++++++++ net/core/rtnetlink.c | 25 ++++++++++++++++++++++++- 5 files changed, 105 insertions(+), 1 deletion(-) -- 1.8.1.4