diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 20:19:42 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 21:53:29 -0500 |
commit | 358a0d1c9edcf6ff041776d65cdc2bc59887ab9c (patch) | |
tree | 656650f418e5127062e8e69000afb067d1bf79b1 /net/tipc | |
parent | d191854282fd831da785a5a34bc6fd16049b8578 (diff) |
tipc: rename struct media to struct tipc_media
Give it a meaningful prefix, as suggested by DaveM, so that it
is consistent with things like struct tipc_bearer, and so it isn't
confused with anything else. This has no impact on the actual
runtime code behaviour.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/bcast.c | 2 | ||||
-rw-r--r-- | net/tipc/bearer.c | 12 | ||||
-rw-r--r-- | net/tipc/bearer.h | 10 | ||||
-rw-r--r-- | net/tipc/eth_media.c | 4 | ||||
-rw-r--r-- | net/tipc/link.c | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index 048b7a3e848e..b6afe7356a86 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c | |||
@@ -76,7 +76,7 @@ struct bcbearer_pair { | |||
76 | 76 | ||
77 | struct bcbearer { | 77 | struct bcbearer { |
78 | struct tipc_bearer bearer; | 78 | struct tipc_bearer bearer; |
79 | struct media media; | 79 | struct tipc_media media; |
80 | struct bcbearer_pair bpairs[MAX_BEARERS]; | 80 | struct bcbearer_pair bpairs[MAX_BEARERS]; |
81 | struct bcbearer_pair bpairs_temp[TIPC_MAX_LINK_PRI + 1]; | 81 | struct bcbearer_pair bpairs_temp[TIPC_MAX_LINK_PRI + 1]; |
82 | struct tipc_node_map remains; | 82 | struct tipc_node_map remains; |
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index b40e98adfd7f..cddec3d9ee17 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | #define MAX_ADDR_STR 32 | 42 | #define MAX_ADDR_STR 32 |
43 | 43 | ||
44 | static struct media *media_list[MAX_MEDIA]; | 44 | static struct tipc_media *media_list[MAX_MEDIA]; |
45 | static u32 media_count; | 45 | static u32 media_count; |
46 | 46 | ||
47 | struct tipc_bearer tipc_bearers[MAX_BEARERS]; | 47 | struct tipc_bearer tipc_bearers[MAX_BEARERS]; |
@@ -68,7 +68,7 @@ static int media_name_valid(const char *name) | |||
68 | * tipc_media_find - locates specified media object by name | 68 | * tipc_media_find - locates specified media object by name |
69 | */ | 69 | */ |
70 | 70 | ||
71 | struct media *tipc_media_find(const char *name) | 71 | struct tipc_media *tipc_media_find(const char *name) |
72 | { | 72 | { |
73 | u32 i; | 73 | u32 i; |
74 | 74 | ||
@@ -83,7 +83,7 @@ struct media *tipc_media_find(const char *name) | |||
83 | * media_find_id - locates specified media object by type identifier | 83 | * media_find_id - locates specified media object by type identifier |
84 | */ | 84 | */ |
85 | 85 | ||
86 | static struct media *media_find_id(u8 type) | 86 | static struct tipc_media *media_find_id(u8 type) |
87 | { | 87 | { |
88 | u32 i; | 88 | u32 i; |
89 | 89 | ||
@@ -100,7 +100,7 @@ static struct media *media_find_id(u8 type) | |||
100 | * Bearers for this media type must be activated separately at a later stage. | 100 | * Bearers for this media type must be activated separately at a later stage. |
101 | */ | 101 | */ |
102 | 102 | ||
103 | int tipc_register_media(struct media *m_ptr) | 103 | int tipc_register_media(struct tipc_media *m_ptr) |
104 | { | 104 | { |
105 | int res = -EINVAL; | 105 | int res = -EINVAL; |
106 | 106 | ||
@@ -138,7 +138,7 @@ exit: | |||
138 | void tipc_media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a) | 138 | void tipc_media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a) |
139 | { | 139 | { |
140 | char addr_str[MAX_ADDR_STR]; | 140 | char addr_str[MAX_ADDR_STR]; |
141 | struct media *m_ptr; | 141 | struct tipc_media *m_ptr; |
142 | 142 | ||
143 | m_ptr = media_find_id(a->media_id); | 143 | m_ptr = media_find_id(a->media_id); |
144 | 144 | ||
@@ -425,7 +425,7 @@ int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr) | |||
425 | int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority) | 425 | int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority) |
426 | { | 426 | { |
427 | struct tipc_bearer *b_ptr; | 427 | struct tipc_bearer *b_ptr; |
428 | struct media *m_ptr; | 428 | struct tipc_media *m_ptr; |
429 | struct bearer_name b_name; | 429 | struct bearer_name b_name; |
430 | char addr_string[16]; | 430 | char addr_string[16]; |
431 | u32 bearer_id; | 431 | u32 bearer_id; |
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h index cfe77c4b20f9..af01ca23a6d7 100644 --- a/net/tipc/bearer.h +++ b/net/tipc/bearer.h | |||
@@ -74,7 +74,7 @@ struct tipc_media_addr { | |||
74 | struct tipc_bearer; | 74 | struct tipc_bearer; |
75 | 75 | ||
76 | /** | 76 | /** |
77 | * struct media - TIPC media information available to internal users | 77 | * struct tipc_media - TIPC media information available to internal users |
78 | * @send_msg: routine which handles buffer transmission | 78 | * @send_msg: routine which handles buffer transmission |
79 | * @enable_bearer: routine which enables a bearer | 79 | * @enable_bearer: routine which enables a bearer |
80 | * @disable_bearer: routine which disables a bearer | 80 | * @disable_bearer: routine which disables a bearer |
@@ -90,7 +90,7 @@ struct tipc_bearer; | |||
90 | * @name: media name | 90 | * @name: media name |
91 | */ | 91 | */ |
92 | 92 | ||
93 | struct media { | 93 | struct tipc_media { |
94 | int (*send_msg)(struct sk_buff *buf, | 94 | int (*send_msg)(struct sk_buff *buf, |
95 | struct tipc_bearer *b_ptr, | 95 | struct tipc_bearer *b_ptr, |
96 | struct tipc_media_addr *dest); | 96 | struct tipc_media_addr *dest); |
@@ -139,7 +139,7 @@ struct tipc_bearer { | |||
139 | struct tipc_media_addr addr; /* initalized by media */ | 139 | struct tipc_media_addr addr; /* initalized by media */ |
140 | char name[TIPC_MAX_BEARER_NAME]; | 140 | char name[TIPC_MAX_BEARER_NAME]; |
141 | spinlock_t lock; | 141 | spinlock_t lock; |
142 | struct media *media; | 142 | struct tipc_media *media; |
143 | u32 priority; | 143 | u32 priority; |
144 | u32 window; | 144 | u32 window; |
145 | u32 tolerance; | 145 | u32 tolerance; |
@@ -164,7 +164,7 @@ extern struct tipc_bearer tipc_bearers[]; | |||
164 | /* | 164 | /* |
165 | * TIPC routines available to supported media types | 165 | * TIPC routines available to supported media types |
166 | */ | 166 | */ |
167 | int tipc_register_media(struct media *m_ptr); | 167 | int tipc_register_media(struct tipc_media *m_ptr); |
168 | 168 | ||
169 | void tipc_recv_msg(struct sk_buff *buf, struct tipc_bearer *tb_ptr); | 169 | void tipc_recv_msg(struct sk_buff *buf, struct tipc_bearer *tb_ptr); |
170 | 170 | ||
@@ -191,7 +191,7 @@ void tipc_bearer_remove_dest(struct tipc_bearer *b_ptr, u32 dest); | |||
191 | void tipc_bearer_schedule(struct tipc_bearer *b_ptr, struct link *l_ptr); | 191 | void tipc_bearer_schedule(struct tipc_bearer *b_ptr, struct link *l_ptr); |
192 | struct tipc_bearer *tipc_bearer_find(const char *name); | 192 | struct tipc_bearer *tipc_bearer_find(const char *name); |
193 | struct tipc_bearer *tipc_bearer_find_interface(const char *if_name); | 193 | struct tipc_bearer *tipc_bearer_find_interface(const char *if_name); |
194 | struct media *tipc_media_find(const char *name); | 194 | struct tipc_media *tipc_media_find(const char *name); |
195 | int tipc_bearer_resolve_congestion(struct tipc_bearer *b_ptr, struct link *l_ptr); | 195 | int tipc_bearer_resolve_congestion(struct tipc_bearer *b_ptr, struct link *l_ptr); |
196 | int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr); | 196 | int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr); |
197 | void tipc_bearer_stop(void); | 197 | void tipc_bearer_stop(void); |
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index cd0a4b8b0ecf..527e3f0e165d 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c | |||
@@ -56,7 +56,7 @@ struct eth_bearer { | |||
56 | struct work_struct cleanup; | 56 | struct work_struct cleanup; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | static struct media eth_media_info; | 59 | static struct tipc_media eth_media_info; |
60 | static struct eth_bearer eth_bearers[MAX_ETH_BEARERS]; | 60 | static struct eth_bearer eth_bearers[MAX_ETH_BEARERS]; |
61 | static int eth_started; | 61 | static int eth_started; |
62 | static struct notifier_block notifier; | 62 | static struct notifier_block notifier; |
@@ -340,7 +340,7 @@ static int eth_msg2addr(struct tipc_media_addr *a, char *msg_area) | |||
340 | * Ethernet media registration info | 340 | * Ethernet media registration info |
341 | */ | 341 | */ |
342 | 342 | ||
343 | static struct media eth_media_info = { | 343 | static struct tipc_media eth_media_info = { |
344 | .send_msg = send_msg, | 344 | .send_msg = send_msg, |
345 | .enable_bearer = enable_bearer, | 345 | .enable_bearer = enable_bearer, |
346 | .disable_bearer = disable_bearer, | 346 | .disable_bearer = disable_bearer, |
diff --git a/net/tipc/link.c b/net/tipc/link.c index 853b286dd08c..515dfe4fd4ce 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -2793,7 +2793,7 @@ static int link_cmd_set_value(const char *name, u32 new_value, u16 cmd) | |||
2793 | struct tipc_node *node; | 2793 | struct tipc_node *node; |
2794 | struct link *l_ptr; | 2794 | struct link *l_ptr; |
2795 | struct tipc_bearer *b_ptr; | 2795 | struct tipc_bearer *b_ptr; |
2796 | struct media *m_ptr; | 2796 | struct tipc_media *m_ptr; |
2797 | 2797 | ||
2798 | l_ptr = link_find_link(name, &node); | 2798 | l_ptr = link_find_link(name, &node); |
2799 | if (l_ptr) { | 2799 | if (l_ptr) { |