]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: add bus attributes to add new and delete devices
authorJiri Pirko <jiri@mellanox.com>
Thu, 25 Apr 2019 13:59:48 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 05:52:02 +0000 (01:52 -0400)
commitc275ed3e1da5ce6e9dd31f5a4db62f74d7c6eb7c
tree55c5193aa0844514cdaadb22ac71ac086aeb8df4
parent75c09f105e8dabb543f6594fb23ebe0c7a826720
netdevsim: add bus attributes to add new and delete devices

Add a way to add new netdevsim device on netdevsim bus and also to
delete existing netdevsim device from the bus. Track the bus devices
in using a list.

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/netdev.c
drivers/net/netdevsim/netdevsim.h