Skip to content

Commit

Permalink
net: xfrm: convert tasklets to use new tasklet_setup() API
Browse files Browse the repository at this point in the history
In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.

Signed-off-by: Romain Perier <[email protected]>
Signed-off-by: Allen Pais <[email protected]>
Acked-by: Steffen Klassert <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
allenpais authored and kuba-moo committed Nov 7, 2020
1 parent fcb8e3a commit 158d31d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions net/xfrm/xfrm_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,9 @@ int xfrm_input_resume(struct sk_buff *skb, int nexthdr)
}
EXPORT_SYMBOL(xfrm_input_resume);

static void xfrm_trans_reinject(unsigned long data)
static void xfrm_trans_reinject(struct tasklet_struct *t)
{
struct xfrm_trans_tasklet *trans = (void *)data;
struct xfrm_trans_tasklet *trans = from_tasklet(trans, t, tasklet);
struct sk_buff_head queue;
struct sk_buff *skb;

Expand Down Expand Up @@ -818,7 +818,6 @@ void __init xfrm_input_init(void)

trans = &per_cpu(xfrm_trans_tasklet, i);
__skb_queue_head_init(&trans->queue);
tasklet_init(&trans->tasklet, xfrm_trans_reinject,
(unsigned long)trans);
tasklet_setup(&trans->tasklet, xfrm_trans_reinject);
}
}

0 comments on commit 158d31d

Please sign in to comment.