PDA

View Full Version : SLES11.3: IPROUTE2 update with SocketCAN support planned?



rikard_soderstrom
11-Nov-2014, 12:09
The latest version of iproute2 package in SLES11-SP3-Updates is 2.6.29.1-6.35.1

However this seems to be outdated (or atleat before SocketCAN).
For example when I execute



$ ip link set can0 type can help


I recieve the following


Usage: ip link add link DEV [ name ] NAME
[ txqueuelen PACKETS ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
type TYPE [ ARGS ]
ip link delete DEV type TYPE [ ARGS ]

ip link set DEVICE [ { up | down } ]
[ arp { on | off } ]
[ dynamic { on | off } ]
[ multicast { on | off } ]
[ allmulticast { on | off } ]
[ promisc { on | off } ]
[ trailers { on | off } ]
[ txqueuelen PACKETS ]
[ name NEWNAME ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
[ netns PID ]
[ netns NAME ]
[ alias NAME ]
[ vf NUM [ mac LLADDR ]
[ vlan VLANID [ qos VLAN-QOS ] ]
[ rate TXRATE ] ]
[ spoofchk { on | off} ] ]
ip link show [ DEVICE ]

TYPE := { vlan | veth | dummy | ifb | macvlan }



But I expect the output to be this


Usage: ip link set DEVICE type can
[ bitrate BITRATE [ sample-point SAMPLE-POINT] ] |
[ tq TQ prop-seg PROP_SEG phase-seg1 PHASE-SEG1
phase-seg2 PHASE-SEG2 [ sjw SJW ] ]

[ loopback { on | off } ]
[ listen-only { on | off } ]
[ triple-sampling { on | off } ]

[ restart-ms TIME-MS ]
[ restart ]

Where: BITRATE := { 1..1000000 }
SAMPLE-POINT := { 0.000..0.999 }
TQ := { NUMBER }
PROP-SEG := { 1..8 }
PHASE-SEG1 := { 1..8 }
PHASE-SEG2 := { 1..8 }
SJW := { 1..4 }
RESTART-MS := { 0 | NUMBER }


As decribed in https://www.kernel.org/doc/Documentation/networking/can.txt

Is there any planned updates for this package?

Yours Sincerely
Rikard Söderström

ataschner
12-Nov-2014, 08:45
Hi Rikard

SocketCAN support is available in SLES 12, which ships with iproute2-3.12.
Upstream iproute2-2.6.31 introduced CAN support and SLES 11 SP3 ships with 2.6.29. Since this is a request for new functionality rather than a bug it could generally only be added in a new service pack (SLES 11 SP4 - I believe due some time in 2015).
Currently adding support for SocketCAN does not seem to have been requested in SLES 11 SP4 and the deadline for feature requests has passed a while ago.

So the way to go for now is SLES 12.
Of course there is still a theoretical possibility that some other request requires a version upgrade of iproute2 in SLES 11 SP4, which as a bonus would add SocketCAN support, but I would not rely on that :-)

//Andreas

rikard_soderstrom
12-Nov-2014, 16:47
Hi Andreas

I want to thank you for your excellent answer, it gave me all the details I needed. Hopefully it will also help others that find this thread.

Yours Sincerely
Rikard Söderström

ps. This thread can now be closed .ds