]> 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)
commitd487a177d2552731af55c69928e7250623db03c1
tree5230f4fd38b88f53e70baba251cda58074b1a40f
parentd5938904a35dcf7e7c65b2b459daa61ab8088bcd
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