diff options
Diffstat (limited to 'net/tipc/port.h')
-rw-r--r-- | net/tipc/port.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/net/tipc/port.h b/net/tipc/port.h index 1b200624bfbd..1c90cbd74990 100644 --- a/net/tipc/port.h +++ b/net/tipc/port.h | |||
@@ -59,8 +59,6 @@ | |||
59 | * @ref: unique reference to port in TIPC object registry | 59 | * @ref: unique reference to port in TIPC object registry |
60 | * @phdr: preformatted message header used when sending messages | 60 | * @phdr: preformatted message header used when sending messages |
61 | * @port_list: adjacent ports in TIPC's global list of ports | 61 | * @port_list: adjacent ports in TIPC's global list of ports |
62 | * @dispatcher: ptr to routine which handles received messages | ||
63 | * @wakeup: ptr to routine to call when port is no longer congested | ||
64 | * @wait_list: adjacent ports in list of ports waiting on link congestion | 62 | * @wait_list: adjacent ports in list of ports waiting on link congestion |
65 | * @waiting_pkts: | 63 | * @waiting_pkts: |
66 | * @sent: # of non-empty messages sent by port | 64 | * @sent: # of non-empty messages sent by port |
@@ -84,8 +82,6 @@ struct tipc_port { | |||
84 | u32 ref; | 82 | u32 ref; |
85 | struct tipc_msg phdr; | 83 | struct tipc_msg phdr; |
86 | struct list_head port_list; | 84 | struct list_head port_list; |
87 | u32 (*dispatcher)(struct tipc_port *, struct sk_buff *); | ||
88 | void (*wakeup)(struct tipc_port *); | ||
89 | struct list_head wait_list; | 85 | struct list_head wait_list; |
90 | u32 waiting_pkts; | 86 | u32 waiting_pkts; |
91 | u32 sent; | 87 | u32 sent; |
@@ -104,17 +100,14 @@ struct tipc_port_list; | |||
104 | /* | 100 | /* |
105 | * TIPC port manipulation routines | 101 | * TIPC port manipulation routines |
106 | */ | 102 | */ |
107 | struct tipc_port *tipc_createport(struct sock *sk, | 103 | u32 tipc_port_init(struct tipc_port *p_ptr, |
108 | u32 (*dispatcher)(struct tipc_port *, | 104 | const unsigned int importance); |
109 | struct sk_buff *), | ||
110 | void (*wakeup)(struct tipc_port *), | ||
111 | const u32 importance); | ||
112 | 105 | ||
113 | int tipc_reject_msg(struct sk_buff *buf, u32 err); | 106 | int tipc_reject_msg(struct sk_buff *buf, u32 err); |
114 | 107 | ||
115 | void tipc_acknowledge(u32 port_ref, u32 ack); | 108 | void tipc_acknowledge(u32 port_ref, u32 ack); |
116 | 109 | ||
117 | int tipc_deleteport(struct tipc_port *p_ptr); | 110 | void tipc_port_destroy(struct tipc_port *p_ptr); |
118 | 111 | ||
119 | int tipc_portimportance(u32 portref, unsigned int *importance); | 112 | int tipc_portimportance(u32 portref, unsigned int *importance); |
120 | int tipc_set_portimportance(u32 portref, unsigned int importance); | 113 | int tipc_set_portimportance(u32 portref, unsigned int importance); |
@@ -136,6 +129,7 @@ int tipc_port_disconnect(u32 portref); | |||
136 | 129 | ||
137 | int tipc_port_shutdown(u32 ref); | 130 | int tipc_port_shutdown(u32 ref); |
138 | 131 | ||
132 | void tipc_port_wakeup(struct tipc_port *port); | ||
139 | 133 | ||
140 | /* | 134 | /* |
141 | * The following routines require that the port be locked on entry | 135 | * The following routines require that the port be locked on entry |