From: Allan Stephens <allan.stephens@windriver.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, allan.stephens@windriver.com
Subject: [PATCH 5/5 net-next-2.6] [TIPC]: Cosmetic cleanup of topology service code
Date: Tue, 13 May 2008 14:17:45 -0400 [thread overview]
Message-ID: <1210702665-5012-6-git-send-email-allan.stephens@windriver.com> (raw)
In-Reply-To: <1210702665-5012-1-git-send-email-allan.stephens@windriver.com>
This patch contains a set of cosmetic changes to TIPC's network
topology service subsystem, including:
- updates to comments (including copyright dates)
- re-ordering structure fields to group them more logically
- removal of optional debugging code that is no longer required
- minor changes to whitespace to conform to Linux coding conventions
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
---
net/tipc/subscr.c | 8 +++-----
net/tipc/subscr.h | 20 ++++++++++----------
2 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
index 7c62791..0326d30 100644
--- a/net/tipc/subscr.c
+++ b/net/tipc/subscr.c
@@ -1,8 +1,8 @@
/*
- * net/tipc/subscr.c: TIPC subscription service
+ * net/tipc/subscr.c: TIPC network topology service
*
* Copyright (c) 2000-2006, Ericsson AB
- * Copyright (c) 2005, Wind River Systems
+ * Copyright (c) 2005-2007, Wind River Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -36,10 +36,10 @@
#include "core.h"
#include "dbg.h"
-#include "subscr.h"
#include "name_table.h"
#include "port.h"
#include "ref.h"
+#include "subscr.h"
/**
* struct subscriber - TIPC network topology subscriber
@@ -149,8 +149,6 @@ void tipc_subscr_report_overlap(struct subscription *sub,
u32 node,
int must)
{
- dbg("Rep overlap %u:%u,%u<->%u,%u\n", sub->seq.type, sub->seq.lower,
- sub->seq.upper, found_lower, found_upper);
if (!tipc_subscr_overlap(sub, found_lower, found_upper))
return;
if (!must && !(sub->filter & TIPC_SUB_PORTS))
diff --git a/net/tipc/subscr.h b/net/tipc/subscr.h
index b9af687..45d89bf 100644
--- a/net/tipc/subscr.h
+++ b/net/tipc/subscr.h
@@ -1,8 +1,8 @@
/*
- * net/tipc/subscr.h: Include file for TIPC subscription service
+ * net/tipc/subscr.h: Include file for TIPC network topology service
*
* Copyright (c) 2003-2006, Ericsson AB
- * Copyright (c) 2005, Wind River Systems
+ * Copyright (c) 2005-2007, Wind River Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -49,12 +49,12 @@ typedef void (*tipc_subscr_event) (struct subscription *sub,
* @timeout: duration of subscription (in ms)
* @filter: event filtering to be done for subscription
* @event_cb: routine invoked when a subscription event is detected
+ * @timer: timer governing subscription duration (optional)
+ * @nameseq_list: adjacent subscriptions in name sequence's subscription list
+ * @subscription_list: adjacent subscriptions in subscriber's subscription list
* @server_ref: object reference of server port associated with subscription
* @swap: indicates if subscriber uses opposite endianness in its messages
* @evt: template for events generated by subscription
- * @subscription_list: adjacent subscriptions in subscriber's subscription list
- * @nameseq_list: adjacent subscriptions in name sequence's subscription list
- * @timer_ref: reference to timer governing subscription duration (may be NULL)
*/
struct subscription {
@@ -62,19 +62,19 @@ struct subscription {
u32 timeout;
u32 filter;
tipc_subscr_event event_cb;
+ struct timer_list timer;
+ struct list_head nameseq_list;
+ struct list_head subscription_list;
u32 server_ref;
int swap;
struct tipc_event evt;
- struct list_head subscription_list;
- struct list_head nameseq_list;
- struct timer_list timer;
};
-int tipc_subscr_overlap(struct subscription * sub,
+int tipc_subscr_overlap(struct subscription *sub,
u32 found_lower,
u32 found_upper);
-void tipc_subscr_report_overlap(struct subscription * sub,
+void tipc_subscr_report_overlap(struct subscription *sub,
u32 found_lower,
u32 found_upper,
u32 event,
--
1.5.3.2
next prev parent reply other threads:[~2008-05-13 18:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 18:17 [PATCH 0/5 net-next-2.6] [TIPC]: Network topology server modifications Allan Stephens
2008-05-13 18:17 ` [PATCH 1/5 net-next-2.6] [TIPC]: Add support for customized subscription overlap handling Allan Stephens
2008-05-19 20:30 ` David Miller
2008-05-13 18:17 ` [PATCH 2/5 net-next-2.6] [TIPC]: Add support for customized subscription endianness Allan Stephens
2008-05-19 20:30 ` David Miller
2008-05-13 18:17 ` [PATCH 3/5 net-next-2.6] [TIPC]: Fix bug in topology server byte swapping routine Allan Stephens
2008-05-19 20:30 ` David Miller
2008-05-13 18:17 ` [PATCH 4/5 net-next-2.6] [TIPC]: Consolidate subscriber & subscriber port references Allan Stephens
2008-05-19 20:30 ` David Miller
2008-05-13 18:17 ` Allan Stephens [this message]
2008-05-19 20:30 ` [PATCH 5/5 net-next-2.6] [TIPC]: Cosmetic cleanup of topology service code 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=1210702665-5012-6-git-send-email-allan.stephens@windriver.com \
--to=allan.stephens@windriver.com \
--cc=davem@davemloft.net \
--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;
as well as URLs for NNTP newsgroup(s).