diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2003-08-07 06:28:33 +1000 |
|---|---|---|
| committer | Stephen Hemminger <shemminger@osdl.org> | 2003-08-07 06:28:33 +1000 |
| commit | 6ae0b08d7fb678751ec27a2b22f38c771e9eed8f (patch) | |
| tree | 4d749d78ac128d6f1ca14543a9c2c4b9a90c0600 /include | |
| parent | cd5221688ad84366dfcb9dd7286ecd4766f9d6e6 (diff) | |
[NET] Dynamically allocate net_device structures for ROSE
This patch changes the ROSE protocol to allocate an array of pointers and each network device
separately. This sets up later change where network_device object's are released on last use
which may be after the module is unloaded.
The patch is against 2.6.0-test2 (though this code hasn't changed in a long time).
Allocation is done via alloc_netdev so the dev->priv area is already reserved and
doesn't need to be allocated separately.
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/rose.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/rose.h b/include/net/rose.h index 96d561e15a26..37e8176ee7d2 100644 --- a/include/net/rose.h +++ b/include/net/rose.h @@ -163,7 +163,7 @@ extern void rose_destroy_socket(struct sock *); /* rose_dev.c */ extern int rose_rx_ip(struct sk_buff *, struct net_device *); -extern int rose_init(struct net_device *); +extern void rose_setup(struct net_device *); /* rose_in.c */ extern int rose_process_rx_frame(struct sock *, struct sk_buff *); |
