From: Parav Pandit <parav@mellanox.com>
To: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org
Cc: parav@mellanox.com, jiri@mellanox.com, moshe@mellanox.com,
vladyslavt@mellanox.com, saeedm@mellanox.com, leon@kernel.org
Subject: [PATCH net-next 0/2] devlink: Introduce devlink port flavour virtual
Date: Tue, 3 Mar 2020 08:12:41 -0600 [thread overview]
Message-ID: <20200303141243.7608-1-parav@mellanox.com> (raw)
Currently PCI PF and VF devlink devices register their ports as
physical port in non-representors mode.
Introduce a new port flavour as virtual so that virtual devices can
register 'virtual' flavour to make it more clear to users.
An example of one PCI PF and 2 PCI virtual functions, each having
one devlink port.
$ devlink port show
pci/0000:06:00.0/1: type eth netdev ens2f0 flavour physical port 0
pci/0000:06:00.2/1: type eth netdev ens2f2 flavour virtual port 0
pci/0000:06:00.3/1: type eth netdev ens2f3 flavour virtual port 0
Patch summary:
Patch-1 Introduces new devlink port flavour 'virtual'.
Patch-2 Uses new flavour to register PCI VF virtual ports.
Parav Pandit (2):
devlink: Introduce devlink port flavour virtual
net/mlx5e: Use devlink virtual flavour for VF devlink port
drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 +-
.../ethernet/mellanox/mlx5/core/en/devlink.c | 39 +++++++++++--------
.../ethernet/mellanox/mlx5/core/en/devlink.h | 7 ++--
.../net/ethernet/mellanox/mlx5/core/en_main.c | 6 +--
include/uapi/linux/devlink.h | 1 +
net/core/devlink.c | 2 +
6 files changed, 33 insertions(+), 24 deletions(-)
--
2.19.2
next reply other threads:[~2020-03-03 14:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-03 14:12 Parav Pandit [this message]
2020-03-03 14:12 ` [PATCH net-next 1/2] devlink: Introduce devlink port flavour virtual Parav Pandit
2020-03-03 22:44 ` Jakub Kicinski
2020-03-03 14:12 ` [PATCH net-next 2/2] net/mlx5e: Use devlink virtual flavour for VF devlink port Parav Pandit
2020-03-03 23:40 ` [PATCH net-next 0/2] devlink: Introduce devlink port flavour virtual David Miller
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=20200303141243.7608-1-parav@mellanox.com \
--to=parav@mellanox.com \
--cc=davem@davemloft.net \
--cc=jiri@mellanox.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=moshe@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=saeedm@mellanox.com \
--cc=vladyslavt@mellanox.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.