summaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_main.c
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2019-12-22 12:26:39 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-26 01:35:35 +0100
commit4c2d5e33dcd3a6333a7895be3b542ff3d373177c (patch)
tree1eb30b9f692699b85ddf74edbfd8ce7b9641ce5d /net/hsr/hsr_main.c
parenthsr: add hsr root debugfs directory (diff)
downloadlinux-4c2d5e33dcd3a6333a7895be3b542ff3d373177c.tar.xz
linux-4c2d5e33dcd3a6333a7895be3b542ff3d373177c.zip
hsr: rename debugfs file when interface name is changed
hsr interface has own debugfs file, which name is same with interface name. So, interface name is changed, debugfs file name should be changed too. Fixes: fc4ecaeebd26 ("net: hsr: add debugfs support for display node list") Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr/hsr_main.c')
-rw-r--r--net/hsr/hsr_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/hsr/hsr_main.c b/net/hsr/hsr_main.c
index 490896379073..ea23eb7408e4 100644
--- a/net/hsr/hsr_main.c
+++ b/net/hsr/hsr_main.c
@@ -45,6 +45,9 @@ static int hsr_netdev_notify(struct notifier_block *nb, unsigned long event,
case NETDEV_CHANGE: /* Link (carrier) state changes */
hsr_check_carrier_and_operstate(hsr);
break;
+ case NETDEV_CHANGENAME:
+ hsr_debugfs_rename(dev);
+ break;
case NETDEV_CHANGEADDR:
if (port->type == HSR_PT_MASTER) {
/* This should not happen since there's no