summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJimmy Assarsson <extja@kvaser.com>2025-07-25 14:32:29 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2025-07-25 17:55:46 +0200
commit6271c8b8273009de2b004ace8208972aa6d93069 (patch)
tree12aa74f5af393eb909634030e187519c7c604403 /tools/perf/scripts/python/mem-phys-addr.py
parent3d68ecf4173cc42159d32ea0d6d35d4924089003 (diff)
downloadkernel-6271c8b8273009de2b004ace8208972aa6d93069.tar.gz
can: kvaser_pciefd: Add devlink port support
Register each CAN channel of the device as an devlink physical port. This makes it easier to get device information for a given network interface (i.e. can2). Example output: $ devlink dev pci/0000:07:00.0 pci/0000:08:00.0 pci/0000:09:00.0 $ devlink port pci/0000:07:00.0/0: type eth netdev can0 flavour physical port 0 splittable false pci/0000:07:00.0/1: type eth netdev can1 flavour physical port 1 splittable false pci/0000:07:00.0/2: type eth netdev can2 flavour physical port 2 splittable false pci/0000:07:00.0/3: type eth netdev can3 flavour physical port 3 splittable false pci/0000:08:00.0/0: type eth netdev can4 flavour physical port 0 splittable false pci/0000:08:00.0/1: type eth netdev can5 flavour physical port 1 splittable false pci/0000:09:00.0/0: type eth netdev can6 flavour physical port 0 splittable false pci/0000:09:00.0/1: type eth netdev can7 flavour physical port 1 splittable false pci/0000:09:00.0/2: type eth netdev can8 flavour physical port 2 splittable false pci/0000:09:00.0/3: type eth netdev can9 flavour physical port 3 splittable false $ devlink port show can2 pci/0000:07:00.0/2: type eth netdev can2 flavour physical port 2 splittable false $ devlink dev info pci/0000:07:00.0: driver kvaser_pciefd versions: running: fw 1.3.75 pci/0000:08:00.0: driver kvaser_pciefd versions: running: fw 2.4.29 pci/0000:09:00.0: driver kvaser_pciefd versions: running: fw 1.3.72 $ sudo ethtool -i can2 driver: kvaser_pciefd version: 6.8.0-40-generic firmware-version: 1.3.75 expansion-rom-version: bus-info: 0000:07:00.0 supports-statistics: no supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Signed-off-by: Jimmy Assarsson <extja@kvaser.com> Link: https://patch.msgid.link/20250725123230.8-10-extja@kvaser.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
2 -0700'>2023-07-03Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds 2023-06-29Merge tag 'iommu-updates-v6.5' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds 2023-06-27Merge tag 'docs-arm64-move' of git://git.lwn.net/linuxLinus Torvalds 2023-06-27Merge tag 'docs-arm-move' of git://git.lwn.net/linuxLinus Torvalds 2023-06-21docs: arm64: Move arm64 documentation under Documentation/arch/Jonathan Corbet 2023-06-12arm: docs: Move Arm documentation to Documentation/arch/Jonathan Corbet 2023-06-07Documentation/x86: Documentation for MON group move featurePeter Newman 2023-05-05Merge tag 'docs-6.4-2' of git://git.lwn.net/linuxLinus Torvalds 2023-05-02Documentation: update kernel stack for x86_64晏艳(采苓) 2023-04-30Merge tag 'iommu-updates-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds 2023-04-28Merge tag 'x86_fpu_for_6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds 2023-04-10docs: move m68k architecture documentation under Documentation/arch/Jonathan Corbet 2023-04-10docs: move parisc documentation under Documentation/arch/Jonathan Corbet 2023-04-10docs: move ia64 architecture docs under Documentation/arch/Jonathan Corbet 2023-04-10docs: Move arc architecture docs under Documentation/arch/Jonathan Corbet 2023-03-30docs: move nios2 documentation under Documentation/arch/Jonathan Corbet 2023-03-30docs: move openrisc documentation under Documentation/arch/Jonathan Corbet 2023-03-30docs: move superh documentation under Documentation/arch/Jonathan Corbet 2023-03-30docs: move sparc documentation under Documentation/arch/Jonathan Corbet 2023-03-30docs: move xtensa documentation under Documentation/arch/Jonathan Corbet 2023-03-30docs: move x86 documentation into Documentation/arch/Jonathan Corbet 2023-03-23docs: create a top-level arch/ directoryJonathan Corbet