From: Alexander Aring <alex.aring@gmail.com>
To: Varka Bhadram <varkabhadram@gmail.com>
Cc: linux-wpan - ML <linux-wpan@vger.kernel.org>
Subject: Re: Unused function mac802154_header_parse()
Date: Fri, 21 Nov 2014 17:35:05 +0100 [thread overview]
Message-ID: <20141121163502.GC20364@omega> (raw)
In-Reply-To: <546F62C1.6010500@gmail.com>
Hi,
On Fri, Nov 21, 2014 at 09:35:21PM +0530, Varka Bhadram wrote:
> Hi,
>
> There are two header_ops operations defined for mac802154 at [1]. One is for creating header another for parsing.
>
> Creation of mac802154_header_create() happening at [2] by using dev_hard_header(), but i did not find dev_parse_header()
> for header parse by mac802154_header_parse().
>
> Am i missing anything.?
>
Parsing frames are completely done at [0]. With call of
"netif_receive_skb(skb);" the frame is deliverd into packet layer.
Currently there exist several issues with parsing frames which I don't
will explain now.
Now the header_ops structure:
These callbacks are many used by arp or ndisc. For me there exist no
reason why a wpan interface implements such functionallity. The lowpan
interface needs these callbacks. For the rework I removed dev_hard_header
calls for 802154 upper layers. Not for the lowpan interface.
What we now doing inside the 802154 layer is to use dev_hard_header and pass
additional parameters over skb->cb, but we don't need that for the wpan interface.
At lowpan interface the ndisc IPv6 cache will tell us the destination
address, that's why need this there.
For af802154: this is currently a complete weird implementation.
For more documentation about that the header_ops callback structure
does, read the implementation for ethernet. [1]
Sorry I am busy right now and it's also not easy to doing some new
mechanism into the frame parsing/mac header generation because it's used
everywhere.
- Alex
[0] http://git.kernel.org/cgit/linux/kernel/git/bluetooth/bluetooth-next.git/tree/net/mac802154/rx.c?id=24ccb9f4f7a3a5a867bbc880019cdb4b41176b63#n196
[1] http://lxr.free-electrons.com/source/net/ethernet/eth.c#L345
next prev parent reply other threads:[~2014-11-21 16:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 16:05 Unused function mac802154_header_parse() Varka Bhadram
2014-11-21 16:35 ` Alexander Aring [this message]
2014-11-21 17:10 ` Alexander Aring
2014-11-22 0:25 ` Varka Bhadram
2014-11-22 8:05 ` 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=20141121163502.GC20364@omega \
--to=alex.aring@gmail.com \
--cc=linux-wpan@vger.kernel.org \
--cc=varkabhadram@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