netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next iproute2 0/2] devlink: Introduce devlink port flavour virtual
@ 2020-03-04  4:06 Parav Pandit
  2020-03-04  4:06 ` [PATCH net-next iproute2 1/2] Update devlink kernel header Parav Pandit
  2020-03-04  4:06 ` [PATCH net-next iproute2 2/2] devlink: Introduce devlink port flavour virtual Parav Pandit
  0 siblings, 2 replies; 8+ messages in thread
From: Parav Pandit @ 2020-03-04  4:06 UTC (permalink / raw)
  To: netdev; +Cc: stephen, dsahern, jiri, parav

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



Parav Pandit (2):
  Update devlink kernel header
  devlink: Introduce devlink port flavour virtual

 devlink/devlink.c            | 2 ++
 include/uapi/linux/devlink.h | 3 +++
 2 files changed, 5 insertions(+)

-- 
2.19.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-06  0:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04  4:06 [PATCH net-next iproute2 0/2] devlink: Introduce devlink port flavour virtual Parav Pandit
2020-03-04  4:06 ` [PATCH net-next iproute2 1/2] Update devlink kernel header Parav Pandit
2020-03-06  0:42   ` Jacob Keller
2020-03-06  0:43     ` David Ahern
2020-03-06  0:55       ` Jacob Keller
2020-03-06  0:44     ` Jacob Keller
2020-03-04  4:06 ` [PATCH net-next iproute2 2/2] devlink: Introduce devlink port flavour virtual Parav Pandit
2020-03-04 19:48   ` David Ahern

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).