From: Stefan Schmidt <stefan@datenfreihafen.org>
To: Allen Pais <allen.cryptic@gmail.com>,
gerrit@erg.abdn.ac.uk, davem@davemloft.net, kuba@kernel.org,
edumazet@google.com, kuznet@ms2.inr.ac.ru,
yoshfuji@linux-ipv6.org, johannes@sipsolutions.net,
alex.aring@gmail.com, santosh.shilimkar@oracle.com,
jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us
Cc: keescook@chromium.org, netdev@vger.kernel.org,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-wpan@vger.kernel.org, linux-rdma@vger.kernel.org,
linux-s390@vger.kernel.org, Allen Pais <allen.lkml@gmail.com>,
Romain Perier <romain.perier@gmail.com>
Subject: Re: [PATCH 4/8] net: mac802154: convert tasklets to use new tasklet_setup() API
Date: Mon, 17 Aug 2020 14:19:39 +0200
Message-ID: <5309b90a-1caa-ec22-ddb9-49eca3581957@datenfreihafen.org> (raw)
In-Reply-To: <20200817085120.24894-4-allen.cryptic@gmail.com>
Hello.
On 17.08.20 10:51, Allen Pais wrote:
> From: Allen Pais <allen.lkml@gmail.com>
>
> 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 <romain.perier@gmail.com>
> Signed-off-by: Allen Pais <allen.lkml@gmail.com>
> ---
> net/mac802154/main.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/net/mac802154/main.c b/net/mac802154/main.c
> index 06ea0f8bfd5c..520cedc594e1 100644
> --- a/net/mac802154/main.c
> +++ b/net/mac802154/main.c
> @@ -20,9 +20,9 @@
> #include "ieee802154_i.h"
> #include "cfg.h"
>
> -static void ieee802154_tasklet_handler(unsigned long data)
> +static void ieee802154_tasklet_handler(struct tasklet_struct *t)
> {
> - struct ieee802154_local *local = (struct ieee802154_local *)data;
> + struct ieee802154_local *local = from_tasklet(local, t, tasklet);
> struct sk_buff *skb;
>
> while ((skb = skb_dequeue(&local->skb_queue))) {
> @@ -91,9 +91,7 @@ ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops)
> INIT_LIST_HEAD(&local->interfaces);
> mutex_init(&local->iflist_mtx);
>
> - tasklet_init(&local->tasklet,
> - ieee802154_tasklet_handler,
> - (unsigned long)local);
> + tasklet_setup(&local->tasklet, ieee802154_tasklet_handler);
>
> skb_queue_head_init(&local->skb_queue);
>
>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
regards
Stefan Schmidt
next prev parent reply index
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-17 8:51 [PATCH 1/8] net: dccp: " Allen Pais
2020-08-17 8:51 ` [PATCH 2/8] net: ipv4: " Allen Pais
2020-08-17 8:51 ` [PATCH 3/8] net: mac80211: " Allen Pais
2020-08-17 8:56 ` Johannes Berg
2020-08-17 8:51 ` [PATCH 4/8] net: mac802154: " Allen Pais
2020-08-17 12:19 ` Stefan Schmidt [this message]
2020-08-17 8:51 ` [PATCH 5/8] net: rds: " Allen Pais
2020-08-17 8:51 ` [PATCH 6/8] net: sched: " Allen Pais
2020-08-17 8:51 ` [PATCH 7/8] net: smc: " Allen Pais
2020-08-17 8:51 ` [PATCH 8/8] net: xfrm: " Allen Pais
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5309b90a-1caa-ec22-ddb9-49eca3581957@datenfreihafen.org \
--to=stefan@datenfreihafen.org \
--cc=alex.aring@gmail.com \
--cc=allen.cryptic@gmail.com \
--cc=allen.lkml@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gerrit@erg.abdn.ac.uk \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=johannes@sipsolutions.net \
--cc=keescook@chromium.org \
--cc=kuba@kernel.org \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=romain.perier@gmail.com \
--cc=santosh.shilimkar@oracle.com \
--cc=xiyou.wangcong@gmail.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Linux-WPAN Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-wpan/0 linux-wpan/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-wpan linux-wpan/ https://lore.kernel.org/linux-wpan \
linux-wpan@vger.kernel.org
public-inbox-index linux-wpan
Example config snippet for mirrors
Newsgroup available over NNTP:
nntp://nntp.lore.kernel.org/org.kernel.vger.linux-wpan
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git