Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tcp.h
Go to the documentation of this file.
1 #ifndef _RDS_TCP_H
2 #define _RDS_TCP_H
3 
4 #define RDS_TCP_PORT 16385
5 
9 };
10 
12 
15  struct socket *t_sock;
19 
23 
24  /* XXX error report? */
29 
30  /* for info exporting only */
35 };
36 
43 };
44 
45 /* tcp.c */
46 void rds_tcp_tune(struct socket *sock);
47 void rds_tcp_nonagle(struct socket *sock);
48 void rds_tcp_set_callbacks(struct socket *sock, struct rds_connection *conn);
50  struct rds_tcp_connection *tc);
54 extern struct rds_transport rds_tcp_transport;
55 
56 /* tcp_connect.c */
57 int rds_tcp_conn_connect(struct rds_connection *conn);
58 void rds_tcp_conn_shutdown(struct rds_connection *conn);
59 void rds_tcp_state_change(struct sock *sk);
60 
61 /* tcp_listen.c */
62 int rds_tcp_listen_init(void);
63 void rds_tcp_listen_stop(void);
64 void rds_tcp_listen_data_ready(struct sock *sk, int bytes);
65 
66 /* tcp_recv.c */
67 int rds_tcp_recv_init(void);
68 void rds_tcp_recv_exit(void);
69 void rds_tcp_data_ready(struct sock *sk, int bytes);
70 int rds_tcp_recv(struct rds_connection *conn);
71 void rds_tcp_inc_free(struct rds_incoming *inc);
72 int rds_tcp_inc_copy_to_user(struct rds_incoming *inc, struct iovec *iov,
73  size_t size);
74 
75 /* tcp_send.c */
76 void rds_tcp_xmit_prepare(struct rds_connection *conn);
77 void rds_tcp_xmit_complete(struct rds_connection *conn);
78 int rds_tcp_xmit(struct rds_connection *conn, struct rds_message *rm,
79  unsigned int hdr_off, unsigned int sg, unsigned int off);
80 void rds_tcp_write_space(struct sock *sk);
81 
82 /* tcp_stats.c */
83 DECLARE_PER_CPU(struct rds_tcp_statistics, rds_tcp_stats);
84 #define rds_tcp_stats_inc(member) rds_stats_inc_which(rds_tcp_stats, member)
85 unsigned int rds_tcp_stats_info_copy(struct rds_info_iterator *iter,
86  unsigned int avail);
87 
88 #endif