[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211030231505.2478149-1-kuba@kernel.org>
Date: Sat, 30 Oct 2021 16:15:00 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>
Subject: [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(-)
--
2.31.1
Powered by blists - more mailing lists