Commit 8c8696553aa3895c2ad4289537e4af45a8877b62

Authored by Allan Stephens
Committed by David S. Miller
1 parent f59d43899e

[TIPC]: Removal of message header option code

This patch removes code associated with optional, user-specified
fields of the TIPC message header.  Such fields were never
utilized by TIPC, and have now been removed from the protocol
specification.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 4 changed files with 0 additions and 38 deletions Side-by-side Diff

include/net/tipc/tipc_port.h
... ... @@ -86,13 +86,6 @@
86 86 void (*wakeup)(struct tipc_port *),
87 87 const u32 importance);
88 88  
89   -/*
90   - * tipc_set_msg_option(): port must be locked.
91   - */
92   -int tipc_set_msg_option(struct tipc_port *tp_ptr,
93   - const char *opt,
94   - const u32 len);
95   -
96 89 int tipc_reject_msg(struct sk_buff *buf, u32 err);
97 90  
98 91 int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode);
... ... @@ -277,7 +277,6 @@
277 277 /* TIPC API for external APIs (see tipc_port.h) */
278 278  
279 279 EXPORT_SYMBOL(tipc_createport_raw);
280   -EXPORT_SYMBOL(tipc_set_msg_option);
281 280 EXPORT_SYMBOL(tipc_reject_msg);
282 281 EXPORT_SYMBOL(tipc_send_buf_fast);
283 282 EXPORT_SYMBOL(tipc_acknowledge);
... ... @@ -190,18 +190,6 @@
190 190 msg_set_bits(m, 1, 19, 0x3, n);
191 191 }
192 192  
193   -static inline void msg_set_options(struct tipc_msg *m, const char *opt, u32 sz)
194   -{
195   - u32 hsz = msg_hdr_sz(m);
196   - char *to = (char *)&m->hdr[hsz/4];
197   -
198   - if ((hsz < DIR_MSG_H_SIZE) || ((hsz + sz) > MAX_H_SIZE))
199   - return;
200   - msg_set_bits(m, 1, 16, 0x7, (hsz - 28)/4);
201   - msg_set_hdr_sz(m, hsz + sz);
202   - memcpy(to, opt, sz);
203   -}
204   -
205 193 static inline u32 msg_bcast_ack(struct tipc_msg *m)
206 194 {
207 195 return msg_bits(m, 1, 0, 0xffff);
... ... @@ -329,17 +317,6 @@
329 317 {
330 318 return (struct tipc_msg *)msg_data(m);
331 319 }
332   -
333   -static inline void msg_expand(struct tipc_msg *m, u32 destnode)
334   -{
335   - if (!msg_short(m))
336   - return;
337   - msg_set_hdr_sz(m, LONG_H_SIZE);
338   - msg_set_orignode(m, msg_prevnode(m));
339   - msg_set_destnode(m, destnode);
340   - memset(&m->hdr[8], 0, 12);
341   -}
342   -
343 320  
344 321  
345 322 /*
... ... @@ -413,13 +413,6 @@
413 413 return buf;
414 414 }
415 415  
416   -int tipc_set_msg_option(struct tipc_port *tp_ptr, const char *opt, const u32 sz)
417   -{
418   - msg_expand(&tp_ptr->phdr, msg_destnode(&tp_ptr->phdr));
419   - msg_set_options(&tp_ptr->phdr, opt, sz);
420   - return TIPC_OK;
421   -}
422   -
423 416 int tipc_reject_msg(struct sk_buff *buf, u32 err)
424 417 {
425 418 struct tipc_msg *msg = buf_msg(buf);