Blame usr/be2iscsi.c

Packit Service 646995
/*
Packit Service 646995
 * be2iscsi helpers
Packit Service 646995
 *
Packit Service 646995
 * Copyright (C) 2006 Mike Christie
Packit Service 646995
 * Copyright (C) 2006 Red Hat, Inc. All rights reserved.
Packit Service 646995
 *
Packit Service 646995
 * This program is free software; you can redistribute it and/or modify
Packit Service 646995
 * it under the terms of the GNU General Public License as published
Packit Service 646995
 * by the Free Software Foundation; either version 2 of the License, or
Packit Service 646995
 * (at your option) any later version.
Packit Service 646995
 *
Packit Service 646995
 * This program is distributed in the hope that it will be useful, but
Packit Service 646995
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 646995
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Packit Service 646995
 * General Public License for more details.
Packit Service 646995
 */
Packit Service 646995
#include "initiator.h"
Packit Service 646995
Packit Service 646995
void be2iscsi_create_conn(struct iscsi_conn *conn)
Packit Service 646995
{
Packit Service 646995
	struct iscsi_session *session = conn->session;
Packit Service 646995
Packit Service 646995
	if (conn->max_recv_dlength > 65536)
Packit Service 646995
		conn->max_recv_dlength = 65536;
Packit Service 646995
Packit Service 646995
	if (session->first_burst > 8192)
Packit Service 646995
		session->first_burst = 8192;
Packit Service 646995
Packit Service 646995
	if (session->max_burst > 262144)
Packit Service 646995
		session->max_burst = 262144;
Packit Service 646995
Packit Service 646995
	if (conn->max_xmit_dlength > 65536)
Packit Service 646995
		conn->max_xmit_dlength = 65536;
Packit Service 646995
Packit Service 646995
	session->erl = 0;
Packit Service 646995
	session->initial_r2t_en = 1;
Packit Service 646995
}