From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Dreier Subject: Re: [PATCHv8 07/11] ib_core: Add API to support IBoE from userspace Date: Thu, 13 May 2010 12:18:23 -0700 Message-ID: References: <20100218172425.GH12286@mtls03> <20100513135645.GL16073@mtldesk030.lab.mtl.com> <8172EB57F9DF4F93BBFAD583235E8C3F@amr.corp.intel.com> <20100513165447.GB19438@mtldesk030.lab.mtl.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: (Sean Hefty's message of "Thu, 13 May 2010 12:11:45 -0700") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ewg-bounces-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org Errors-To: ewg-bounces-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org To: Sean Hefty Cc: Linux RDMA list , Eli Cohen , ewg List-Id: linux-rdma@vger.kernel.org > Basically, what I want to understand is why does this change make sense? > > @@ -1139,6 +1139,10 @@ struct ib_device { > struct ib_grh *in_grh, > struct ib_mad *in_mad, > struct ib_mad *out_mad); > + int (*get_eth_l2_addr)(struct ib_device *device, > u8 port, > + union ib_gid *dgid, int > sgid_idx, > + u8 *mac, u16 *vlan_id, u8 > *tagged); > + Yes, that was pretty much my original question. Why do we have a verb for userspace to call a device-specific method to do the mapping? The layering seems wrong somewhere if we have a generic verb to do this mapping, but then put the mapping in device-specific code. - R. -- Roland Dreier || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html