From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net-next v2 0/5] netdevsim: improve separation between device and bus
Date: Sat, 30 Oct 2021 16:15:00 -0700 [thread overview]
Message-ID: <20211030231505.2478149-1-kuba@kernel.org> (raw)
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
next reply other threads:[~2021-10-30 23:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-30 23:15 Jakub Kicinski [this message]
2021-10-30 23:15 ` [PATCH net-next v2 1/5] netdevsim: take rtnl_lock when assigning num_vfs Jakub Kicinski
2021-10-30 23:15 ` [PATCH net-next v2 2/5] netdevsim: move vfconfig to nsim_dev Jakub Kicinski
2021-10-30 23:15 ` [PATCH net-next v2 3/5] netdevsim: move details of vf config to dev Jakub Kicinski
2021-10-30 23:15 ` [PATCH net-next v2 4/5] netdevsim: move max " Jakub Kicinski
2021-10-30 23:15 ` [PATCH net-next v2 5/5] netdevsim: rename 'driver' entry points Jakub Kicinski
2021-11-01 13:40 ` [PATCH net-next v2 0/5] netdevsim: improve separation between device and bus patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211030231505.2478149-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).