Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ifb: use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f1ccc ("tasklet: Introduce new initialization API")

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Emil Renner Berthing and committed by
Jakub Kicinski
08267523 ca5ae9e4

+3 -4
+3 -4
drivers/net/ifb.c
··· 59 59 static int ifb_open(struct net_device *dev); 60 60 static int ifb_close(struct net_device *dev); 61 61 62 - static void ifb_ri_tasklet(unsigned long _txp) 62 + static void ifb_ri_tasklet(struct tasklet_struct *t) 63 63 { 64 - struct ifb_q_private *txp = (struct ifb_q_private *)_txp; 64 + struct ifb_q_private *txp = from_tasklet(txp, t, ifb_tasklet); 65 65 struct netdev_queue *txq; 66 66 struct sk_buff *skb; 67 67 ··· 170 170 __skb_queue_head_init(&txp->tq); 171 171 u64_stats_init(&txp->rsync); 172 172 u64_stats_init(&txp->tsync); 173 - tasklet_init(&txp->ifb_tasklet, ifb_ri_tasklet, 174 - (unsigned long)txp); 173 + tasklet_setup(&txp->ifb_tasklet, ifb_ri_tasklet); 175 174 netif_tx_start_queue(netdev_get_tx_queue(dev, i)); 176 175 } 177 176 return 0;