diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-16 22:37:41 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2019-04-03 00:12:19 +0200 |
commit | d8f82c8e3bdbfaf8c990523a4ec601c9b76d770e (patch) | |
tree | 54e7031e3e44465ddc9a03108dc563f78da9d92d /include | |
parent | 994e40ef9ae3a6835c6ba2e7170247be9011114c (diff) |
NET: NETROM: Convert NETROM device creation to netlink.HEADax25-bpqether-rework-5.0
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 <ralf@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netrom.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 *); |