]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: extend device attrs to support port addition and deletion
authorJiri Pirko <jiri@mellanox.com>
Thu, 25 Apr 2019 13:59:54 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 05:52:03 +0000 (01:52 -0400)
commit56345cf939350d257842add0522aa491005e32f8
tree5230f4fd38b88f53e70baba251cda58074b1a40f
parent859bccd765299874edde12323697709352052967
netdevsim: extend device attrs to support port addition and deletion

In order to test flows in core, it is beneficial to maintain previously
supported possibility to add and delete ports during netdevsim lifetime.
Do it by extending device sysfs attrs by "new_port" and "del_port".

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bus.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h