From d8f82c8e3bdbfaf8c990523a4ec601c9b76d770e Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 16 Jan 2017 22:37:41 +0100 Subject: NET: NETROM: Convert NETROM device creation to netlink. Until now, NETROM did create a number of NETROM devices on initialization. The number could be set by the module parameter nr_ndevs and did default to 4 while typically only a single one would be used. With this applied a new version of ip from the iproute2 is required for NETROM device creation: # ip link add type netrom This will create a NETROM device which will be named netrom0 for the first device thus consistent with the old naming practice. Explicit naming is possible with # ip link add name red23 type netrom which will create a NETROM device named red23. Signed-off-by: Ralf Baechle --- include/net/netrom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/net/netrom.h b/include/net/netrom.h index 5a0714ff500f..004bd8c98326 100644 --- a/include/net/netrom.h +++ b/include/net/netrom.h @@ -192,6 +192,7 @@ void nr_destroy_socket(struct sock *); /* nr_dev.c */ int nr_rx_ip(struct sk_buff *, struct net_device *); void nr_setup(struct net_device *); +extern struct rtnl_link_ops nr_link_ops; /* nr_in.c */ int nr_process_rx_frame(struct sock *, struct sk_buff *); -- cgit v1.2.3