diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c index 3b58f6620629..b61e1aca2c9e 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.c @@ -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) { diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.h b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.h index c3a2a4dc61f4..6c9254d075fe 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.h +++ b/sys/dev/cxgb/ulp/tom/cxgb_tcp_offload.h @@ -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 *);