/* iscsi_tcp_xmit_qlen - return the number of bytes queued for xmit  */
static int iscsi_sw_tcp_xmit_qlen(struct iscsi_conn *conn)
/* iscsi_tcp_xmit_qlen - return the number of bytes queued for xmit  */
static int iscsi_sw_tcp_xmit_qlen(struct iscsi_conn *conn)
{
	struct iscsi_tcp_conn *tcp_conn = conn->dd_data;
	struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data;
	struct iscsi_segment *segment = &tcp_sw_conn->out.segment;
	return segment->total_copied - segment->total_size;
}