diff options
Diffstat (limited to 'net/tipc/port.h')
| -rw-r--r-- | net/tipc/port.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/tipc/port.h b/net/tipc/port.h index a00397393bd1..cf4ca5b1d9a4 100644 --- a/net/tipc/port.h +++ b/net/tipc/port.h | |||
| @@ -42,9 +42,10 @@ | |||
| 42 | #include "msg.h" | 42 | #include "msg.h" |
| 43 | #include "node_subscr.h" | 43 | #include "node_subscr.h" |
| 44 | 44 | ||
| 45 | #define TIPC_FLOW_CONTROL_WIN 512 | 45 | #define TIPC_CONNACK_INTV 256 |
| 46 | #define CONN_OVERLOAD_LIMIT ((TIPC_FLOW_CONTROL_WIN * 2 + 1) * \ | 46 | #define TIPC_FLOWCTRL_WIN (TIPC_CONNACK_INTV * 2) |
| 47 | SKB_TRUESIZE(TIPC_MAX_USER_MSG_SIZE)) | 47 | #define TIPC_CONN_OVERLOAD_LIMIT ((TIPC_FLOWCTRL_WIN * 2 + 1) * \ |
| 48 | SKB_TRUESIZE(TIPC_MAX_USER_MSG_SIZE)) | ||
| 48 | 49 | ||
| 49 | /** | 50 | /** |
| 50 | * struct tipc_port - TIPC port structure | 51 | * struct tipc_port - TIPC port structure |
| @@ -134,7 +135,6 @@ int tipc_port_peer_msg(struct tipc_port *p_ptr, struct tipc_msg *msg); | |||
| 134 | /* | 135 | /* |
| 135 | * TIPC messaging routines | 136 | * TIPC messaging routines |
| 136 | */ | 137 | */ |
| 137 | int tipc_port_rcv(struct sk_buff *buf); | ||
| 138 | 138 | ||
| 139 | int tipc_send(struct tipc_port *port, | 139 | int tipc_send(struct tipc_port *port, |
| 140 | struct iovec const *msg_sect, | 140 | struct iovec const *msg_sect, |
| @@ -187,7 +187,7 @@ static inline void tipc_port_unlock(struct tipc_port *p_ptr) | |||
| 187 | 187 | ||
| 188 | static inline int tipc_port_congested(struct tipc_port *p_ptr) | 188 | static inline int tipc_port_congested(struct tipc_port *p_ptr) |
| 189 | { | 189 | { |
| 190 | return (p_ptr->sent - p_ptr->acked) >= (TIPC_FLOW_CONTROL_WIN * 2); | 190 | return ((p_ptr->sent - p_ptr->acked) >= TIPC_FLOWCTRL_WIN); |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | 193 | ||
