summaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/dev.c
Commit message (Collapse)AuthorAgeFilesLines
...
* netdevsim: rename dev_init/exit() functions and make them independent on nsJiri Pirko2019-04-261-19/+13
| | | | | | | | These functions are going to be called from bus probe/release(), therefore make them independent on ns struct and rename accordingly. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* netdevsim: move device registration and related code to bus.cJiri Pirko2019-04-261-1/+1
| | | | | | | | | Move netdevsim device registration into bus.c and alongside with that the related sysfs attributes. Introduce new struct nsim_bus_dev to represent a netdevsim device on netdevsim bus. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* netdevsim: rename devlink.c to dev.c to contain per-dev(asic) itemsJiri Pirko2019-04-261-0/+241
The existing devlink.c code is going to be extended to represent asic device on a bus. As this is about more than just devlink, rename the file. Do appropriate prefix renaming alongside with that. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>