aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/port.h')
-rw-r--r--net/tipc/port.h53
1 files changed, 1 insertions, 52 deletions
diff --git a/net/tipc/port.h b/net/tipc/port.h
index 2485649c408a..7fd37c202ce6 100644
--- a/net/tipc/port.h
+++ b/net/tipc/port.h
@@ -2,7 +2,7 @@
2 * net/tipc/port.h: Include file for TIPC port code 2 * net/tipc/port.h: Include file for TIPC port code
3 * 3 *
4 * Copyright (c) 1994-2007, Ericsson AB 4 * Copyright (c) 1994-2007, Ericsson AB
5 * Copyright (c) 2004-2007, 2010-2011, Wind River Systems 5 * Copyright (c) 2004-2007, 2010-2013, Wind River Systems
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
@@ -46,37 +46,6 @@
46#define CONN_OVERLOAD_LIMIT ((TIPC_FLOW_CONTROL_WIN * 2 + 1) * \ 46#define CONN_OVERLOAD_LIMIT ((TIPC_FLOW_CONTROL_WIN * 2 + 1) * \
47 SKB_TRUESIZE(TIPC_MAX_USER_MSG_SIZE)) 47 SKB_TRUESIZE(TIPC_MAX_USER_MSG_SIZE))
48 48
49typedef void (*tipc_msg_err_event) (void *usr_handle, u32 portref,
50 struct sk_buff **buf, unsigned char const *data,
51 unsigned int size, int reason,
52 struct tipc_portid const *attmpt_destid);
53
54typedef void (*tipc_named_msg_err_event) (void *usr_handle, u32 portref,
55 struct sk_buff **buf, unsigned char const *data,
56 unsigned int size, int reason,
57 struct tipc_name_seq const *attmpt_dest);
58
59typedef void (*tipc_conn_shutdown_event) (void *usr_handle, u32 portref,
60 struct sk_buff **buf, unsigned char const *data,
61 unsigned int size, int reason);
62
63typedef void (*tipc_msg_event) (void *usr_handle, u32 portref,
64 struct sk_buff **buf, unsigned char const *data,
65 unsigned int size, unsigned int importance,
66 struct tipc_portid const *origin);
67
68typedef void (*tipc_named_msg_event) (void *usr_handle, u32 portref,
69 struct sk_buff **buf, unsigned char const *data,
70 unsigned int size, unsigned int importance,
71 struct tipc_portid const *orig,
72 struct tipc_name_seq const *dest);
73
74typedef void (*tipc_conn_msg_event) (void *usr_handle, u32 portref,
75 struct sk_buff **buf, unsigned char const *data,
76 unsigned int size);
77
78typedef void (*tipc_continue_event) (void *usr_handle, u32 portref);
79
80/** 49/**
81 * struct user_port - TIPC user port (used with native API) 50 * struct user_port - TIPC user port (used with native API)
82 * @usr_handle: user-specified field 51 * @usr_handle: user-specified field
@@ -87,13 +56,6 @@ typedef void (*tipc_continue_event) (void *usr_handle, u32 portref);
87struct user_port { 56struct user_port {
88 void *usr_handle; 57 void *usr_handle;
89 u32 ref; 58 u32 ref;
90 tipc_msg_err_event err_cb;
91 tipc_named_msg_err_event named_err_cb;
92 tipc_conn_shutdown_event conn_err_cb;
93 tipc_msg_event msg_cb;
94 tipc_named_msg_event named_msg_cb;
95 tipc_conn_msg_event conn_msg_cb;
96 tipc_continue_event continue_event_cb;
97}; 59};
98 60
99/** 61/**
@@ -164,18 +126,8 @@ struct tipc_port *tipc_createport_raw(void *usr_handle,
164 126
165int tipc_reject_msg(struct sk_buff *buf, u32 err); 127int tipc_reject_msg(struct sk_buff *buf, u32 err);
166 128
167int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode);
168
169void tipc_acknowledge(u32 port_ref, u32 ack); 129void tipc_acknowledge(u32 port_ref, u32 ack);
170 130
171int tipc_createport(void *usr_handle,
172 unsigned int importance, tipc_msg_err_event error_cb,
173 tipc_named_msg_err_event named_error_cb,
174 tipc_conn_shutdown_event conn_error_cb, tipc_msg_event msg_cb,
175 tipc_named_msg_event named_msg_cb,
176 tipc_conn_msg_event conn_msg_cb,
177 tipc_continue_event continue_event_cb, u32 *portref);
178
179int tipc_deleteport(u32 portref); 131int tipc_deleteport(u32 portref);
180 132
181int tipc_portimportance(u32 portref, unsigned int *importance); 133int tipc_portimportance(u32 portref, unsigned int *importance);
@@ -222,9 +174,6 @@ int tipc_send2port(u32 portref, struct tipc_portid const *dest,
222 unsigned int num_sect, struct iovec const *msg_sect, 174 unsigned int num_sect, struct iovec const *msg_sect,
223 unsigned int total_len); 175 unsigned int total_len);
224 176
225int tipc_send_buf2port(u32 portref, struct tipc_portid const *dest,
226 struct sk_buff *buf, unsigned int dsz);
227
228int tipc_multicast(u32 portref, struct tipc_name_seq const *seq, 177int tipc_multicast(u32 portref, struct tipc_name_seq const *seq,
229 unsigned int section_count, struct iovec const *msg, 178 unsigned int section_count, struct iovec const *msg,
230 unsigned int total_len); 179 unsigned int total_len);