Date: Wed, 23 Jul 2014 11:57:10 +0800 From: Chen Wen <pokkys@gmail.com> To: freebsd-scsi@freebsd.org Subject: disable iSCSI ping while ping_timeout=0 Message-ID: <C304C39E-E797-49E3-A02E-1E97107AE5EC@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi I install VMWare ESXi 5.5 in FreeBSD native iSCSI lun and boot from = san(iPXE). I found NOP-out will make iPXE disconnect this session.=20 iPXE=92s wiki page says that you can disable NOP-out when you using LIO. I suggest that we do the same thing while user sets ping_timeout=3D0. > static void > cfiscsi_callout(void *context) > { > struct icl_pdu *cp; > struct iscsi_bhs_nop_in *bhsni; > struct cfiscsi_session *cs; >=20 > cs =3D context; >=20 > if (cs->cs_terminating) > return; >=20 > callout_schedule(&cs->cs_callout, 1 * hz); >=20 if (ping_timeout =3D=3D 0) return; >=20 > CFISCSI_SESSION_LOCK(cs); > cs->cs_timeout++; > CFISCSI_SESSION_UNLOCK(cs);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C304C39E-E797-49E3-A02E-1E97107AE5EC>