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: fc4ecaeebd
("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>
This commit is contained in:

committed by
David S. Miller

parent
c6c4ccd7f9
commit
4c2d5e33dc
@@ -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
|
||||
|
Reference in New Issue
Block a user