OSDN Git Service

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)
commit794b2c05ca1c4ded4a023d11833e3855a0ed6ea8
tree5230f4fd38b88f53e70baba251cda58074b1a40f
parent8320d145912738655cf631d27aa1829d8b17804e
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