From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH v4 for-next 04/12] IB/ipoib: Return IPoIB devices matching connection parameters Date: Tue, 19 May 2015 17:55:02 -0600 Message-ID: <20150519235502.GB26634@obsidianresearch.com> References: <1431841868-28063-1-git-send-email-haggaie@mellanox.com> <1431841868-28063-5-git-send-email-haggaie@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Doug Ledford , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Liran Liss , Guy Shapiro , Shachar Raindel , Yotam Kenneth To: Haggai Eran Return-path: Content-Disposition: inline In-Reply-To: <1431841868-28063-5-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On Sun, May 17, 2015 at 08:51:00AM +0300, Haggai Eran wrote: > From: Guy Shapiro > > Implement the get_net_device_by_port_pkey_ip callback that returns network > device to ib_core according to connection parameters. Check the ipoib > device and iterate over all child devices to look for a match. Can you give a run down on how to actually set this up? Like what shell command do you execute? What are the child devices in the netnamespace? > For each ipoib device we iterate through all upper devices when searching > for a matching IP, in order to support bonding. Checking an IP address in a packet against a device without consulting the routing table is a big red flag for me. Can you elaborate? 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