From: Denis Kenzior <denkenz@gmail.com>
To: James Prestwood <prestwoj@gmail.com>, iwd@lists.linux.dev
Subject: Re: [PATCH v2 1/1] wiphy: fix regdom change wiphy dump logic
Date: Wed, 17 May 2023 22:21:44 -0500 [thread overview]
Message-ID: <078eb5ea-ead1-1667-5801-6ca56ca39427@gmail.com> (raw)
In-Reply-To: <b7a3fbba-6715-d373-2190-ed2012e103a8@gmail.com>
Hi James,
>> NAK. Please stop right there. genl is already a queue. There's no sense
>> adding queuing on top of it in this particular case. If l_genl_family_cancel
>> isn't doing the right thing, then fix that instead.
>
> Well l_genl_family_cancel really cant do anything about it. Once the dump hits
> the kernel you cant cancel it (this is why we added l_genl_family_request_sent).
This was done for a different reason. In the case of CMD_REMAIN_ON_CHANNEL we
must wait for the ack to obtain the cookie. We can cancel the ROC only if we
know the cookie. Otherwise, even if we call l_genl_family_cancel, the ROC would
still go ahead.
What you have here is a different and simpler case.
> So the only alternative I can think of, if we cant do it in IWD, would be to
> make l_genl queue dumps and not issue more dumps until the previous one
> finishes. This is obviously a significant behavioral change.
I'm lost? That is what is supposed to happen and happens already today. If you
issue two dumps like:
l_genl_family_dump(..., msg1, ...);
l_genl_family_dump(..., msg2, ...);
Then msg2 will not be sent to the kernel until NLMSG_DONE flagged message is
received. So what exactly would be the behavioral change you are referring to?
Anyway, looking at l_genl_family_cancel, it is doing the wrong thing, so that
should be fixed.
Regards,
-Denis
next prev parent reply other threads:[~2023-05-18 3:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-10 20:45 [PATCH v2 0/1] Fix wiphy regdom logic James Prestwood
2023-05-10 20:45 ` [PATCH v2 1/1] wiphy: fix regdom change wiphy dump logic James Prestwood
2023-05-17 0:53 ` Denis Kenzior
2023-05-17 15:11 ` James Prestwood
2023-05-18 3:21 ` Denis Kenzior [this message]
2023-05-18 14:03 ` James Prestwood
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=078eb5ea-ead1-1667-5801-6ca56ca39427@gmail.com \
--to=denkenz@gmail.com \
--cc=iwd@lists.linux.dev \
--cc=prestwoj@gmail.com \
/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).