netdevsim: improve separation between device and bus
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 0 repliesApplied 5/5
- v15 patches 0 repliesSuperseded
Patches in v2 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | netdevsim: take rtnl_lock when assigning num_vfsdrivers/ | +11 | 0 replies | Applied |
| 2/5 | netdevsim: move vfconfig to nsim_devdrivers/ drivers/ drivers/ +1 more | +111 | 0 replies | Applied |
| 3/5 | netdevsim: move details of vf config to devdrivers/ drivers/ drivers/ | +63 | 0 replies | Applied |
| 4/5 | netdevsim: move max vf config to devdrivers/ drivers/ drivers/ | +64 | 0 replies | Applied |
| 5/5 | netdevsim: rename 'driver' entry pointsdrivers/ drivers/ drivers/ | +14 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH net-next v2 0/5] netdevsim: improve separation between device and bus
VF config falls strangely in between device and bus responsibilities today. Because of this bus.c sticks fingers directly into struct nsim_dev and we look at nsim_bus_dev in many more places than necessary.
Make bus.c contain pure interface code, and move the particulars of the logic (which touch on eswitch, devlink reloads etc) to dev.c. Rename the functions at the boundary of the interface to make the separation clearer.
v2: add missing statics after functions were un-exposed
Jakub Kicinski (5):
netdevsim: take rtnl_lock when assigning num_vfs
netdevsim: move vfconfig to nsim_dev
netdevsim: move details of vf config to dev
netdevsim: move max vf config to dev
netdevsim: rename 'driver' entry points
drivers/net/netdevsim/bus.c | 155 ++---------------------- drivers/net/netdevsim/dev.c | 188 ++++++++++++++++++++++++++---- drivers/net/netdevsim/netdev.c | 72 ++++++------ drivers/net/netdevsim/netdevsim.h | 55 ++++----- 4 files changed, 235 insertions(+), 235 deletions(-)
Signature · 1 line
2.31.1