Skip to contentSkip to conversation

ip: link add vxcan support

RFC PATCH New Oliver Hartkopp 1 participant 1 message Apr 25, 2017 CAN network drivers

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 ip: link add vxcan support

Support the configuration of the Virtual CAN Tunnel (vxcan). The code is derived from link_veth.c which implements a similar netlink interface for the configuration of netdevice pairs.

---

Hello Marc,

I created this patch to test the vxcan driver. As include/linux/can/vxcan.h will be part of the standard update of iproute2, I will send the patch to netdev-ML when this is done.

IIRC the latest extensions to support the termination API and the fixed bitrate support is still not implemented in iproute2. Would you like to do this? I'm currently more addicted to the namespace stuff.

Regards,
Oliver

 include/linux/can/vxcan.h | 12 +++++++
 ip/Makefile               |  2 +-
 ip/iplink_vxcan.c         | 87 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 100 insertions(+), 1 deletion(-)
 create mode 100644 include/linux/can/vxcan.h
 create mode 100644 ip/iplink_vxcan.c
include/linux/can/vxcan.h new file +12 -0
new file mode 100644
index 00000000..ffb0b715
@@ -0,0 +1,12 @@
+#ifndef _UAPI_CAN_VXCAN_H
+#define _UAPI_CAN_VXCAN_H
+
+enum {
+	VXCAN_INFO_UNSPEC,
+	VXCAN_INFO_PEER,
+
+	__VXCAN_INFO_MAX
+#define VXCAN_INFO_MAX	(__VXCAN_INFO_MAX - 1)
+};
+
+#endif
ip/Makefile +1 -1
index 035d42c7..d5c6473a 100644
@@ -2,7 +2,7 @@ IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \
     rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
     ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o iptuntap.o iptoken.o \
     ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o iplink_dummy.o \
-    iplink_ifb.o iplink_nlmon.o iplink_team.o iplink_vcan.o \
+    iplink_ifb.o iplink_nlmon.o iplink_team.o iplink_vcan.o iplink_vxcan.o \
     iplink_vlan.o link_veth.o link_gre.o iplink_can.o iplink_xdp.o \
     iplink_macvlan.o ipl2tp.o link_vti.o link_vti6.o \
     iplink_vxlan.o tcp_metrics.o iplink_ipoib.o ipnetconf.o link_ip6tnl.o \
ip/iplink_vxcan.c new file +87 -0

87 lines not on this page · raw message

Signature · 1 line
2.11.0