Re: [PATCH] iscsi_tcp: add support for listening on random port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 14 May 2019 11:51:02 +0800
zhenwei pi <pizhenwei@xxxxxxxxxxxxx> wrote:

> There are 10+ disks and 40+ CPUs in typical storage server. rather than
> single-process-multi-threads model (one tgtd with multi LUNs), we usually
> prefer to use multi-processes model (each tgtd with a backend). and we
> can get better performence and full isolation for backends. each tgtd need
> to listen different TCP port.
> This patch adds support for listening on random TCP port, and use ISCSI_LISTEN_PORT
> instead of 3260.
> 
> Test cases:
>  # tgtd -f --iscsi portal=127.0.0.1
>  # tgtadm --lld iscsi --mode portal --op show
>    Portal: 127.0.0.1:3260,1
> 
>  # tgtd -f --iscsi portal=127.0.0.1:3261
>  # tgtadm --lld iscsi --mode portal --op show
>    Portal: 127.0.0.1:3261,1
> 
>  # tgtd -f --iscsi portal=127.0.0.1:0
>  # tgtadm --lld iscsi --mode portal --op show
>    Portal: 127.0.0.1:36753,1
> 
>  # tgtd -f --iscsi portal=[fe80::da9e:f3ff:fe8e:d40e%eth0]
>  # tgtadm --lld iscsi --mode portal --op show
>    Portal: [fe80::da9e:f3ff:fe8e:d40e]:3260,1
> 
>  # tgtd -f --iscsi portal=[fe80::da9e:f3ff:fe8e:d40e%eth0]:3261
>  # tgtadm --lld iscsi --mode portal --op show
>    Portal: [fe80::da9e:f3ff:fe8e:d40e]:3261,1
> 
>  # tgtd -f --iscsi portal=[fe80::da9e:f3ff:fe8e:d40e%eth0]:0
>  # tgtadm --lld iscsi --mode portal --op show
>    Portal: [fe80::da9e:f3ff:fe8e:d40e]:18795,1
> 
> Signed-off-by: zhenwei pi <pizhenwei@xxxxxxxxxxxxx>
> Signed-off-by: honghao wang <wanghonghao@xxxxxxxxxxxxx>
> ---
>  usr/iscsi/iscsi_tcp.c | 19 +++++++++++++++++--
>  usr/iscsi/iscsid.c    |  2 +-
>  2 files changed, 18 insertions(+), 3 deletions(-)

Looks find. Pushed, thanks.



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux