From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 160/306] mac80211-hwsim: add rate-limited debugging for rx-netlink
Date: Mon, 27 Feb 2017 15:33:17 +0100 [thread overview]
Message-ID: <1488205997.28431.12.camel@sipsolutions.net> (raw)
In-Reply-To: <c014eb8c-7f93-3831-3375-07f6f6325a6a@candelatech.com>
On Fri, 2017-02-24 at 07:27 -0800, Ben Greear wrote:
>
> On 02/23/2017 10:39 PM, Johannes Berg wrote:
> >
> > > + !info->attrs[HWSIM_ATTR_SIGNAL]) {
> > > + if (net_ratelimit())
> > > + printk(KERN_DEBUG " hwsim rx-nl: Missing
> > > required attribute\n");
> >
> > I'm not convinced net_ratelimit() is a good idea, that's a global
> > rate limiter.
>
> Is there a better rate-limiter w/out hand-crafting something?
You can use include/linux/ratelimit.h to do that?
johannes
next prev parent reply other threads:[~2017-02-27 15:24 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 0:28 [PATCH 099/306] mac80211-hwsim: notify user-space about channel change greearb
2017-02-24 0:28 ` [PATCH 100/306] mac80211-hwsim: remove dmesg spam about get-survey greearb
2017-02-24 6:36 ` Johannes Berg
2017-02-24 0:28 ` [PATCH 101/306] mac80211-hwsim: Pass rate-ctrl flags and tx-power to user-space greearb
2017-02-24 6:37 ` Johannes Berg
2017-02-24 0:28 ` [PATCH 102/306] mac80211-hwsim: enable better rx-status when using netlink greearb
2017-02-24 6:38 ` Johannes Berg
2017-02-24 0:28 ` [PATCH 160/306] mac80211-hwsim: add rate-limited debugging for rx-netlink greearb
2017-02-24 6:39 ` Johannes Berg
2017-02-24 15:27 ` Ben Greear
2017-02-27 14:33 ` Johannes Berg [this message]
2017-02-24 0:28 ` [PATCH 161/306] mac80211-hwsim: Improve logging greearb
2017-02-24 6:42 ` Johannes Berg
2017-02-24 15:26 ` Ben Greear
2017-02-24 0:28 ` [PATCH 162/306] mac80211-hwsim: add length checks before allocating skb greearb
2017-02-24 6:43 ` Johannes Berg
2017-02-24 8:45 ` Andrew Zaborowski
2017-02-24 15:19 ` Ben Greear
2017-02-24 6:36 ` [PATCH 099/306] mac80211-hwsim: notify user-space about channel change Johannes Berg
2017-02-24 15:39 ` Ben Greear
2017-02-27 14:34 ` Johannes Berg
2017-02-27 20:48 ` Ben Greear
2017-03-02 8:38 ` Johannes Berg
2017-03-02 14:26 ` Ben Greear
2017-02-27 21:00 ` Ben Greear
2017-03-02 8:39 ` Johannes Berg
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=1488205997.28431.12.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).