mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
ifb: use new tasklet API
This converts the driver to use the new tasklet API introduced in
commit 12cc923f1c
("tasklet: Introduce new initialization API")
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ca5ae9e44e
commit
0826752311
1 changed files with 3 additions and 4 deletions
|
@ -59,9 +59,9 @@ static netdev_tx_t ifb_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||||
static int ifb_open(struct net_device *dev);
|
static int ifb_open(struct net_device *dev);
|
||||||
static int ifb_close(struct net_device *dev);
|
static int ifb_close(struct net_device *dev);
|
||||||
|
|
||||||
static void ifb_ri_tasklet(unsigned long _txp)
|
static void ifb_ri_tasklet(struct tasklet_struct *t)
|
||||||
{
|
{
|
||||||
struct ifb_q_private *txp = (struct ifb_q_private *)_txp;
|
struct ifb_q_private *txp = from_tasklet(txp, t, ifb_tasklet);
|
||||||
struct netdev_queue *txq;
|
struct netdev_queue *txq;
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
|
||||||
|
@ -170,8 +170,7 @@ static int ifb_dev_init(struct net_device *dev)
|
||||||
__skb_queue_head_init(&txp->tq);
|
__skb_queue_head_init(&txp->tq);
|
||||||
u64_stats_init(&txp->rsync);
|
u64_stats_init(&txp->rsync);
|
||||||
u64_stats_init(&txp->tsync);
|
u64_stats_init(&txp->tsync);
|
||||||
tasklet_init(&txp->ifb_tasklet, ifb_ri_tasklet,
|
tasklet_setup(&txp->ifb_tasklet, ifb_ri_tasklet);
|
||||||
(unsigned long)txp);
|
|
||||||
netif_tx_start_queue(netdev_get_tx_queue(dev, i));
|
netif_tx_start_queue(netdev_get_tx_queue(dev, i));
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue