From: Stefan Schmidt <stefan@osg.samsung.com>
To: Varka Bhadram <varkabhadram@gmail.com>, linux-wpan@vger.kernel.org
Cc: alex.aring@gmail.com, Varka Bhadram <varkab@cdac.in>
Subject: Re: [PATCH bluetooth-next] mac802154: rename seq to sequence_number
Date: Thu, 25 Jun 2015 09:29:16 +0200 [thread overview]
Message-ID: <558BADCC.6000800@osg.samsung.com> (raw)
In-Reply-To: <1435213871-2450-1-git-send-email-varkab@cdac.in>
Hello.
On 25/06/15 08:31, Varka Bhadram wrote:
> This patch rename ieee802154_hdr member seq to sequence_number.
Any good reason for this? I think seq is quite clear in this context and
making it sequence_number has no real benefit.
If others disagree I'm fine to let that one in though. No hard feelings
about it.
regards
Stefan Schmidt
> Signed-off-by: Varka Bhadram <varkab@cdac.in>
> ---
> include/net/ieee802154_netdev.h | 2 +-
> net/ieee802154/header_ops.c | 2 +-
> net/mac802154/iface.c | 2 +-
> net/mac802154/rx.c | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h
> index 2c10a9f..9c95a74 100644
> --- a/include/net/ieee802154_netdev.h
> +++ b/include/net/ieee802154_netdev.h
> @@ -88,7 +88,7 @@ struct ieee802154_hdr_fc {
>
> struct ieee802154_hdr {
> struct ieee802154_hdr_fc fc;
> - u8 seq;
> + u8 sequence_number;
> struct ieee802154_addr source;
> struct ieee802154_addr dest;
> struct ieee802154_sechdr sec;
> diff --git a/net/ieee802154/header_ops.c b/net/ieee802154/header_ops.c
> index a051b69..9c3291b 100644
> --- a/net/ieee802154/header_ops.c
> +++ b/net/ieee802154/header_ops.c
> @@ -90,7 +90,7 @@ ieee802154_hdr_push(struct sk_buff *skb, const struct ieee802154_hdr *hdr)
> int rc;
> struct ieee802154_hdr_fc fc = hdr->fc;
>
> - buf[pos++] = hdr->seq;
> + buf[pos++] = hdr->sequence_number;
>
> fc.dest_addr_mode = hdr->dest.mode;
>
> diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
> index 416de90..0bc0f44 100644
> --- a/net/mac802154/iface.c
> +++ b/net/mac802154/iface.c
> @@ -372,7 +372,7 @@ static int mac802154_header_create(struct sk_buff *skb,
> hdr.fc.type = cb->type;
> hdr.fc.security_enabled = cb->secen;
> hdr.fc.ack_request = cb->ackreq;
> - hdr.seq = atomic_inc_return(&dev->ieee802154_ptr->dsn) & 0xFF;
> + hdr.sequence_number = atomic_inc_return(&dev->ieee802154_ptr->dsn) & 0xFF;
>
> if (mac802154_set_header_security(sdata, &hdr, cb) < 0)
> return -EINVAL;
> diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
> index 5a258c1..48781a6 100644
> --- a/net/mac802154/rx.c
> +++ b/net/mac802154/rx.c
> @@ -142,7 +142,7 @@ ieee802154_parse_frame_start(struct sk_buff *skb, struct ieee802154_hdr *hdr)
> skb->mac_len = hlen;
>
> pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc),
> - hdr->seq);
> + hdr->sequence_number);
>
> cb->type = hdr->fc.type;
> cb->ackreq = hdr->fc.ack_request;
next prev parent reply other threads:[~2015-06-25 7:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 6:31 [PATCH bluetooth-next] mac802154: rename seq to sequence_number Varka Bhadram
2015-06-25 7:29 ` Stefan Schmidt [this message]
2015-06-25 7:43 ` Phoebe Buckheister
2015-06-25 8:23 ` Varka Bhadram
2015-06-25 8:40 ` Phoebe Buckheister
2015-06-25 9:23 ` Varka Bhadram
2015-06-25 9:37 ` Phoebe Buckheister
2015-06-25 9:40 ` Stefan Schmidt
2015-06-25 12:16 ` Alexander Aring
2015-06-25 12:32 ` Varka Bhadram
2015-06-25 8:21 ` Varka Bhadram
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=558BADCC.6000800@osg.samsung.com \
--to=stefan@osg.samsung.com \
--cc=alex.aring@gmail.com \
--cc=linux-wpan@vger.kernel.org \
--cc=varkab@cdac.in \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.