OSDN Git Service

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)
commitf9d9db47d3ba87309e022efa33b438e5ef329411
tree55c5193aa0844514cdaadb22ac71ac086aeb8df4
parent57ce9774951360aad66c48b1b30683ffb1b23f61
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