Thread (30 messages) 30 messages, 3 authors, 2025-07-28

Re: [PATCH net-next 26/27] can: kvaser_usb: Add devlink port support

From: Jiri Pirko <jiri@resnulli.us>
Date: 2025-07-28 08:07:00
Also in: linux-can

Fri, Jul 25, 2025 at 06:05:36PM +0200, mkl@pengutronix.de wrote:
From: Jimmy Assarsson <redacted>

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
 usb/1-1.3:1.0

 $ devlink port
 usb/1-1.3:1.0/0: type eth netdev can0 flavour physical port 0 splittable false
 usb/1-1.3:1.0/1: type eth netdev can1 flavour physical port 1 splittable false

 $ devlink port show can1
 usb/1-1.3:1.0/1: type eth netdev can1 flavour physical port 0 splittable false
Looks fine to me. Out of curiosity, do you have some plans to extend use
of devlink port in the future, or this is it?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help