Thread (24 messages) 24 messages, 5 authors, 2021-01-26

RE: [net-next V9 03/14] devlink: Support add and delete devlink port

From: Parav Pandit <hidden>
Date: 2021-01-22 03:32:03
Also in: linux-rdma

From: Samudrala, Sridhar <sridhar.samudrala@intel.com>
Sent: Friday, January 22, 2021 2:21 AM
quoted
$ devlink port show
pci/0000:06:00.0/65535: type eth netdev ens2f0np0 flavour physical
port 0 splittable false

$ devlink port add pci/0000:06:00.0 flavour pcisf pfnum 0 sfnum 88
Do we need to specify pfnum when adding a SF port? Isn't this redundant?
Isn't there a 1:1 mapping between the pci device and a pfnum?
No. it's not entirely redundant.
Currently in most cases today it is same function number as that of PCI device.
Netronome has one devlink instance that represents multiple PCI devices.
Someday mlx5 driver might have it too for the single eswitch instance among multiple PCI devices of one physical card.
So it is needed to specify.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help