Re: [PATCH v1 03/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-07-09 Thread Haggai Eran
On 09/07/2015 02:41, Jason Gunthorpe wrote: On Mon, Jun 22, 2015 at 03:42:32PM +0300, Haggai Eran wrote: +if (net_dev) { +ipoib_warn(priv, matching net_dev found: %s\n, + net_dev-name); Is that a debug print? Yes, I'm afraid it

Re: [PATCH v1 03/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-07-08 Thread Jason Gunthorpe
On Mon, Jun 22, 2015 at 03:42:32PM +0300, Haggai Eran wrote: + if (net_dev) { + ipoib_warn(priv, matching net_dev found: %s\n, +net_dev-name); Is that a debug print? + default: + dev_warn(dev-dev, duplicate IP

[PATCH v1 03/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-06-22 Thread Haggai Eran
From: Guy Shapiro gu...@mellanox.com 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. For each IPoIB device we iterate through all upper