All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, dbaryshkov@gmail.com,
	Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Subject: [PATCH net-next v5 06/13] mac802154: slave interfaces declaration
Date: Wed, 16 May 2012 10:50:24 +0400	[thread overview]
Message-ID: <1337151031-5178-7-git-send-email-alex.bluesman.smirnov@gmail.com> (raw)
In-Reply-To: <1337151031-5178-1-git-send-email-alex.bluesman.smirnov@gmail.com>

Slaves represent typical network interfaces available from userspace.
Each ieee802154 device/transceiver may have several slaves and able
to be associated with several networks at the same time. So this
patch adds structure for slaves declaration.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
---
 net/mac802154/mac802154.h |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h
index 4f2d975..d53b86c 100644
--- a/net/mac802154/mac802154.h
+++ b/net/mac802154/mac802154.h
@@ -58,6 +58,34 @@ struct mac802154_priv {
 #define	MAC802154_DEVICE_STOPPED	0x00
 #define MAC802154_DEVICE_RUN		0x01
 
+/* Slave interface definition.
+ *
+ * Slaves represent typical network interfaces available from userspace.
+ * Each ieee802154 device/transceiver may have several slaves and able
+ * to be associated with several networks at the same time.
+ */
+struct mac802154_sub_if_data {
+	struct list_head list; /* the ieee802154_priv->slaves list */
+
+	struct mac802154_priv *hw;
+	struct net_device *dev;
+
+	int type;
+
+	spinlock_t mib_lock;
+
+	__le16 pan_id;
+	__le16 short_addr;
+
+	u8 chan;
+	u8 page;
+
+	/* MAC BSN field */
+	u8 bsn;
+	/* MAC DSN field */
+	u8 dsn;
+};
+
 #define mac802154_to_priv(_hw)	container_of(_hw, struct mac802154_priv, hw)
 
 #define MAC802154_MAX_XMIT_ATTEMPTS	3
-- 
1.7.2.3

  parent reply	other threads:[~2012-05-16  6:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16  6:50 [PATCH net-next v5 0/13] basic ieee802.15.4 mac support Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 01/13] mac802154: basic ieee802.15.4 device structures Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 02/13] mac802154: allocation of ieee802154 device Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 03/13] mac802154: RX data path Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 04/13] mac802154: TX " Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 05/13] mac802154: declare reduced mlme operations Alexander Smirnov
2012-05-16  6:50 ` Alexander Smirnov [this message]
2012-05-16  6:50 ` [PATCH net-next v5 07/13] mac802154: basic MAC commands interface support Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 08/13] mac802154: basic mib support Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 09/13] ieee802154: interface type to be added Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 10/13] mac802154: slaves management support Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 11/13] mac802154: monitor device support Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 12/13] drivers/ieee802154: IEEE 802.15.4 loopback driver Alexander Smirnov
2012-05-16  6:50 ` [PATCH net-next v5 13/13] Documentation/networking/ieee802154: update MAC chapter Alexander Smirnov
2012-05-16 19:34 ` [PATCH net-next v5 0/13] basic ieee802.15.4 mac support David Miller

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=1337151031-5178-7-git-send-email-alex.bluesman.smirnov@gmail.com \
    --to=alex.bluesman.smirnov@gmail.com \
    --cc=davem@davemloft.net \
    --cc=dbaryshkov@gmail.com \
    --cc=netdev@vger.kernel.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 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.