remove local version of tcp_offload_* functions

This commit is contained in:
Kip Macy 2008-07-21 02:29:40 +00:00
parent d21cb942bc
commit 9a027ea9a4
2 changed files with 0 additions and 57 deletions

View File

@ -65,58 +65,6 @@ __FBSDID("$FreeBSD$");
* to sys/netinet/tcp_offload.c
*/
void
tcp_offload_twstart(struct tcpcb *tp)
{
INP_INFO_WLOCK(&tcbinfo);
inp_wlock(tp->t_inpcb);
tcp_twstart(tp);
INP_INFO_WUNLOCK(&tcbinfo);
}
void
tcp_offload_twstart_disconnect(struct tcpcb *tp)
{
struct socket *so;
INP_INFO_WLOCK(&tcbinfo);
inp_wlock(tp->t_inpcb);
so = tp->t_inpcb->inp_socket;
tcp_twstart(tp);
if (so)
soisdisconnected(so);
INP_INFO_WUNLOCK(&tcbinfo);
}
struct tcpcb *
tcp_offload_close(struct tcpcb *tp)
{
INP_INFO_WLOCK(&tcbinfo);
INP_WLOCK(tp->t_inpcb);
tp = tcp_close(tp);
INP_INFO_WUNLOCK(&tcbinfo);
if (tp)
INP_WUNLOCK(tp->t_inpcb);
return (tp);
}
struct tcpcb *
tcp_offload_drop(struct tcpcb *tp, int error)
{
INP_INFO_WLOCK(&tcbinfo);
INP_WLOCK(tp->t_inpcb);
tp = tcp_drop(tp, error);
INP_INFO_WUNLOCK(&tcbinfo);
if (tp)
INP_WUNLOCK(tp->t_inpcb);
return (tp);
}
void
sockbuf_lock(struct sockbuf *sb)
{

View File

@ -7,11 +7,6 @@ struct tcpcb;
struct socket;
struct sockbuf;
void tcp_offload_twstart(struct tcpcb *tp);
void tcp_offload_twstart_disconnect(struct tcpcb *tp);
struct tcpcb *tcp_offload_close(struct tcpcb *tp);
struct tcpcb *tcp_offload_drop(struct tcpcb *tp, int error);
void sockbuf_lock(struct sockbuf *);
void sockbuf_lock_assert(struct sockbuf *);
void sockbuf_unlock(struct sockbuf *);