From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicholas A. Bellinger" Subject: Re: [PATCH 5/9] ib_srpt: Fix sport->port_guid formatting code Date: Mon, 24 Oct 2011 13:25:52 -0700 Message-ID: <1319487952.17450.72.camel@haakon2.linux-iscsi.org> References: <1319434422-15354-1-git-send-email-nab@linux-iscsi.org> <1319434422-15354-6-git-send-email-nab@linux-iscsi.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: target-devel-owner@vger.kernel.org To: Bart Van Assche Cc: linux-rdma , Roland Dreier , Christoph Hellwig , target-devel , linux-scsi List-Id: linux-rdma@vger.kernel.org On Mon, 2011-10-24 at 21:57 +0200, Bart Van Assche wrote: > On Mon, Oct 24, 2011 at 7:33 AM, Nicholas A. Bellinger > wrote: > > + snprintf(sport->port_guid, sizeof(sport->port_guid), > > + "0x0000000000000000%016llx", > > + be64_to_cpu(sport->gid.global.interface_id)); > > If I interpret Roland's e-mail correctly Roland asked to use GID table > entry 0 (http://www.spinics.net/lists/linux-rdma/msg09751.html) ? > I'll defer to Roland on this, as the port->gid.global.interface_id you recommended does exactly what we need. I'm happy to test another code snippet if you have one handy. --nab