From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH RFC 0/3] Support standard SRIOV configuration for IB VFs Date: Mon, 25 May 2015 15:14:33 -0600 Message-ID: <20150525211433.GA9186@obsidianresearch.com> References: <1432225447-6536-1-git-send-email-ogerlitz@mellanox.com> <1432226406.28905.22.camel@redhat.com> <1432242708.28905.73.camel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Or Gerlitz Cc: Doug Ledford , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Amir Vadai List-Id: linux-rdma@vger.kernel.org On Mon, May 25, 2015 at 11:04:41PM +0300, Or Gerlitz wrote: > OK, so rewinding a bit, the IB VF [1] identity is their 8 bytes port > GUID, and as Jason noted the user/kernel API allows to deliver up to > 32 bytes between user and kernel under the set_vf_mac flow > (do_setvfinfo() in net/core/rtnetlink.c). Trying it out through > **non-modified** ip tool and net/core/rtnetlink.c things just work - > I can set eight bytes value to be the virtual port GUID : Was I not perfectly clear? You have to use the 20 byte LLADDR format here: > # ip link set dev ib0 vf 1 mac aa:bb:cc:dd:ee:ff:11:22 > Port GUID: 0x2211ffeeddccbbaa The byte order got screwed up someplace. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html