linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Luca Coelho <luca@coelho.fi>,
	Johannes Berg <johannes@sipsolutions.net>,
	Jukka Rissanen <jukka.rissanen@linux.intel.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH 0/3] Add mcast event when hwsim radios are created and removed
Date: Mon, 27 Oct 2014 16:22:53 -0700	[thread overview]
Message-ID: <544ED3CD.30406@candelatech.com> (raw)
In-Reply-To: <9C544CA4-42D3-4419-9BC7-C42DF2420CA4@holtmann.org>

On 10/27/2014 04:14 PM, Marcel Holtmann wrote:
> Hi Luca,
> 
>>>>>> That's not particularly hard to figure out, for example by looking at
>>>>>> sysfs.
>>>>>>
>>>>>> Is this really so time-constrained/important/... that you can't do that?
>>>>>
>>>>> It does not seem very practical to dig this information from sysfs as
>>>>> the same information can be easily get via netlink as this patch shows.
>>>>
>>>> Well, that's a slippery slope. I'd consider it more practical to use
>>>> existing APIs instead of (gratuitously) inventing new ones. It'll even
>>>> work on older kernels as an added benefit.
>>>
>>> I see that different. The component that handles the emulation of the new wireless device should be independent from the component driving it. I prefer to have a race free way of obtaining the needed information without having to monitor nl80211 and sysfs for this. Especially with the use cases that we have in mind it has no business with these other interfaces.
>>>
>>> We have been down this route with the bridge interface where people had to dig out information from sysfs and it did not work out nicely. So now everything moves to netlink.
>>
>> Why does hwsim have to be treated differently from any other device?
>> Unlike bridging, HW emulation doesn't seem to be a real life use case.
>>
>> But I'm probably missing something. ;)
> 
> this is the controlling side. The thing that I call emulator. It is the component that creates/destroys the hwsim wiphy. It can also be the one that handles the packet processing similar to wmediumd.
> 
> The nl80211/cfg80211 is not treated differently here. This is purely for the MAC80211_HWSIM netlink family side of things. Makes sense?

I just got some patches accepted upstream that allow you to name the phy upon creation
(and to suppress wlanX creation in case that is desired).

If your control tool is creating the phys, then it can know ahead of time the names
and match the events that way.

I'm not taking sides on your particular patch, but those features made my
tool a lot easier to write and more efficient.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  reply	other threads:[~2014-10-27 23:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27 10:44 [PATCH 0/3] Add mcast event when hwsim radios are created and removed Jukka Rissanen
2014-10-27 10:44 ` [PATCH 1/3] mac80211-hwsim: Rename CREATE and DESTROY radio to NEW and DEL radio Jukka Rissanen
2014-10-29 15:48   ` Johannes Berg
2014-10-27 10:44 ` [PATCH 2/3] mac80211-hwsim: Provide multicast event for HWSIM_CMD_NEW_RADIO Jukka Rissanen
2014-10-29 15:48   ` Johannes Berg
2014-10-29 15:50   ` Johannes Berg
2014-10-29 15:53     ` Johannes Berg
2014-10-30 14:28       ` Jukka Rissanen
2014-10-27 10:44 ` [PATCH 3/3] mac80211-hwsim: Provide multicast event for HWSIM_CMD_DEL_RADIO Jukka Rissanen
2014-10-27 11:20 ` [PATCH 0/3] Add mcast event when hwsim radios are created and removed Johannes Berg
2014-10-27 11:29   ` Jukka Rissanen
2014-10-27 11:31     ` Johannes Berg
2014-10-27 11:55       ` Jukka Rissanen
2014-10-27 12:08         ` Johannes Berg
2014-10-27 14:19           ` Marcel Holtmann
2014-10-27 17:34             ` Luca Coelho
2014-10-27 23:14               ` Marcel Holtmann
2014-10-27 23:22                 ` Ben Greear [this message]
2014-10-28  6:42                 ` Luca Coelho

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=544ED3CD.30406@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --cc=jukka.rissanen@linux.intel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luca@coelho.fi \
    --cc=marcel@holtmann.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).