From: Michael Richardson <mcr@sandelman.ca>
To: Xue Liu <liuxuenetmail@gmail.com>
Cc: linux-wpan@vger.kernel.org
Subject: Re: Register two 802.15.4 devices/interfaces in one driver
Date: Thu, 16 Feb 2017 09:36:07 -0500 [thread overview]
Message-ID: <28517.1487255767@obiwan.sandelman.ca> (raw)
In-Reply-To: <CAJuUDwuKQvpXhZKKAmBLReUd4+LOqS3+5CaGjRR6DNcRkQgrVw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]
Xue Liu <liuxuenetmail@gmail.com> wrote:
> Now I am working on a driver for MCR20A radio chip from NXP. This chip
> has a special feature: support two PAN networks. It means it can
> operate on two different or the same channels with different PAN IDs,
> short addresses and extended addresses. I suppose to add two 802.15.4
> interfaces for this feature. And I have two questions:
Neat. Too bad it can't operate on two channels at the same time...
BTW: can it do 802.15.4 TSCH mode?
> 1. how to add 802.15.4 devices ? Call ieee802154_register_hw() twice
> with different struct ieee802154_hw ?
> 2. how to deal with tx and rx regarding two interfaces.
I think that at you will need to call register_hw() twice and manage two
virtual queues, and then service them in your real driver. Perhaps the
fakewpan device structure will help you here.
My take, however, is that the PANID processing on some devices is really just
software, and perhaps we should be treating PANID the same way we treat
VLANs: as something often sorted out in the stack, but sometimes coming with
hardware acceleration. We also have support for multiple Tx and Rx queues
now, so this should also help.
That's how I would think of this in the long term.
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | network architect [
] mcr@sandelman.ca http://www.sandelman.ca/ | ruby on rails [
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-02-16 14:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-16 8:56 Register two 802.15.4 devices/interfaces in one driver Xue Liu
2017-02-16 14:36 ` Michael Richardson [this message]
2017-02-16 15:55 ` Johann Fischer
2017-02-17 11:05 ` Xue Liu
2017-03-01 17:14 ` Stefan Schmidt
2017-03-06 13:53 ` Xue Liu
2017-03-07 19:04 ` Stefan Schmidt
2017-02-16 18:41 ` Alexander Aring
2017-02-16 19:44 ` Michael Richardson
2017-02-17 7:26 ` Alexander Aring
2017-02-17 11:01 ` Xue Liu
2017-02-19 7:09 ` Alexander Aring
2017-02-17 16:12 ` Michael Richardson
2017-02-20 8:34 ` Alexander Aring
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=28517.1487255767@obiwan.sandelman.ca \
--to=mcr@sandelman.ca \
--cc=linux-wpan@vger.kernel.org \
--cc=liuxuenetmail@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