eql: convert to net_device_ops
Convert driver to new net_device_ops. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
974acda0ea
Коммит
99921b7e64
|
@ -162,6 +162,13 @@ static void eql_timer(unsigned long param)
|
||||||
static char version[] __initdata =
|
static char version[] __initdata =
|
||||||
"Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)\n";
|
"Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)\n";
|
||||||
|
|
||||||
|
static const struct net_device_ops eql_netdev_ops = {
|
||||||
|
.ndo_open = eql_open,
|
||||||
|
.ndo_stop = eql_close,
|
||||||
|
.ndo_do_ioctl = eql_ioctl,
|
||||||
|
.ndo_start_xmit = eql_slave_xmit,
|
||||||
|
};
|
||||||
|
|
||||||
static void __init eql_setup(struct net_device *dev)
|
static void __init eql_setup(struct net_device *dev)
|
||||||
{
|
{
|
||||||
equalizer_t *eql = netdev_priv(dev);
|
equalizer_t *eql = netdev_priv(dev);
|
||||||
|
@ -175,10 +182,7 @@ static void __init eql_setup(struct net_device *dev)
|
||||||
INIT_LIST_HEAD(&eql->queue.all_slaves);
|
INIT_LIST_HEAD(&eql->queue.all_slaves);
|
||||||
eql->queue.master_dev = dev;
|
eql->queue.master_dev = dev;
|
||||||
|
|
||||||
dev->open = eql_open;
|
dev->netdev_ops = &eql_netdev_ops;
|
||||||
dev->stop = eql_close;
|
|
||||||
dev->do_ioctl = eql_ioctl;
|
|
||||||
dev->hard_start_xmit = eql_slave_xmit;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now we undo some of the things that eth_setup does
|
* Now we undo some of the things that eth_setup does
|
||||||
|
|
Загрузка…
Ссылка в новой задаче