From: Antonio Quartulli <ordex@autistici.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org,
Marek Lindner <lindner_marek@yahoo.de>,
Antonio Quartulli <ordex@autistici.org>
Subject: [PATCH 04/13] batman-adv: group tt type definitions together
Date: Sat, 19 Jan 2013 21:27:50 +0800 [thread overview]
Message-ID: <1358602079-24024-5-git-send-email-ordex@autistici.org> (raw)
In-Reply-To: <1358602079-24024-1-git-send-email-ordex@autistici.org>
From: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
net/batman-adv/types.h | 58 +++++++++++++++++++++++++-------------------------
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index db3fb25..9a66115 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -339,35 +339,6 @@ struct batadv_socket_packet {
struct batadv_icmp_packet_rr icmp_packet;
};
-struct batadv_tt_common_entry {
- uint8_t addr[ETH_ALEN];
- struct hlist_node hash_entry;
- uint16_t flags;
- unsigned long added_at;
- atomic_t refcount;
- struct rcu_head rcu;
-};
-
-struct batadv_tt_local_entry {
- struct batadv_tt_common_entry common;
- unsigned long last_seen;
-};
-
-struct batadv_tt_global_entry {
- struct batadv_tt_common_entry common;
- struct hlist_head orig_list;
- spinlock_t list_lock; /* protects the list */
- unsigned long roam_at; /* time at which TT_GLOBAL_ROAM was set */
-};
-
-struct batadv_tt_orig_list_entry {
- struct batadv_orig_node *orig_node;
- uint8_t ttvn;
- atomic_t refcount;
- struct rcu_head rcu;
- struct hlist_node list;
-};
-
#ifdef CONFIG_BATMAN_ADV_BLA
struct batadv_backbone_gw {
uint8_t orig[ETH_ALEN];
@@ -393,6 +364,35 @@ struct batadv_claim {
};
#endif
+struct batadv_tt_common_entry {
+ uint8_t addr[ETH_ALEN];
+ struct hlist_node hash_entry;
+ uint16_t flags;
+ unsigned long added_at;
+ atomic_t refcount;
+ struct rcu_head rcu;
+};
+
+struct batadv_tt_local_entry {
+ struct batadv_tt_common_entry common;
+ unsigned long last_seen;
+};
+
+struct batadv_tt_global_entry {
+ struct batadv_tt_common_entry common;
+ struct hlist_head orig_list;
+ spinlock_t list_lock; /* protects the list */
+ unsigned long roam_at; /* time at which TT_GLOBAL_ROAM was set */
+};
+
+struct batadv_tt_orig_list_entry {
+ struct batadv_orig_node *orig_node;
+ uint8_t ttvn;
+ atomic_t refcount;
+ struct rcu_head rcu;
+ struct hlist_node list;
+};
+
struct batadv_tt_change_node {
struct list_head list;
struct batadv_tt_change change;
--
1.8.0.2
next prev parent reply other threads:[~2013-01-19 13:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-19 13:27 pull request: batman-adv 2013-01-19 Antonio Quartulli
2013-01-19 13:27 ` [PATCH 01/13] batman-adv: a delayed_work has to be initialised once Antonio Quartulli
2013-01-19 13:27 ` [PATCH 02/13] batman-adv: align kernel doc properly Antonio Quartulli
2013-01-19 13:27 ` [PATCH 03/13] batman-adv: mark debug_log struct as bat_priv only struct Antonio Quartulli
2013-01-19 13:27 ` Antonio Quartulli [this message]
2013-01-19 13:27 ` [PATCH 05/13] batman-adv: rename batadv_if_list_entry struct to make clear it is used by vis Antonio Quartulli
2013-01-19 13:27 ` [PATCH 06/13] batman-adv: rename batadv_recvlist_node " Antonio Quartulli
2013-01-19 13:27 ` [PATCH 07/13] batman-adv: rename batadv_backbone_gw struct to make clear it is used by bla Antonio Quartulli
2013-01-19 13:27 ` [PATCH 08/13] batman-adv: rename batadv_claim " Antonio Quartulli
2013-01-19 13:27 ` [PATCH 09/13] batman-adv: kernel doc for types.h Antonio Quartulli
2013-01-19 13:27 ` [PATCH 10/13] batman-adv: rename random32() to prandom_u32() Antonio Quartulli
2013-01-19 13:27 ` [PATCH 11/13] batman-adv: postpone sysfs removal when unregistering Antonio Quartulli
2013-01-19 13:27 ` [PATCH 12/13] batman-adv: update copyright years Antonio Quartulli
2013-01-19 13:27 ` [PATCH 13/13] batman-adv: Start new development cycle Antonio Quartulli
2013-01-19 15:50 ` pull request: batman-adv 2013-01-19 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=1358602079-24024-5-git-send-email-ordex@autistici.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=davem@davemloft.net \
--cc=lindner_marek@yahoo.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox