]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: add handling for new CAN netlink interface
authorRemigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
Fri, 19 May 2017 12:54:49 +0000 (14:54 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 31 May 2017 00:39:33 +0000 (17:39 -0700)
commit759fa6086eea16e1397a29439361fb13e31ace17
treede2e3a7f03fc31480042b4db5bf0775907a70252
parentf6fc1055e41a8a924313c336b39b9ffe0c86938b
ip: add handling for new CAN netlink interface

This patch adds handling for new CAN netlink interface introduced in
4.11 kernel:
- IFLA_CAN_TERMINATION,
- IFLA_CAN_TERMINATION_CONST,
- IFLA_CAN_BITRATE_CONST,
- IFLA_CAN_DATA_BITRATE_CONST

Output example:
$ip -d link show can0
6: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0
    can state STOPPED (berr-counter tx 0 rx 0) restart-ms 0
          bitrate 80000
             [   20000,    33333,    50000,    80000,    83333,   100000,
                125000,   150000,   175000,   200000,   225000,   250000,
                275000,   300000,   500000,   625000,   800000,  1000000 ]
          termination 0 [ 0, 120 ]
          clock 0numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
ip/iplink_can.c