Re: [PATCH v2 02/11] IB/addr: Pass network namespace as a parameter

2015-04-21 Thread Haggai Eran
On 21/04/2015 01:05, Doug Ledford wrote: > On Mon, 2015-04-20 at 12:03 +0300, Haggai Eran wrote: >> From: Guy Shapiro >> >> Add network namespace support to the ib_addr module. For that, all the >> address >> resolution and matching should be done using the appropriate namespace >> instead >> of

Re: [PATCH v2 02/11] IB/addr: Pass network namespace as a parameter

2015-04-21 Thread Haggai Eran
On 20/04/2015 20:09, Jason Gunthorpe wrote: > On Mon, Apr 20, 2015 at 12:03:33PM +0300, Haggai Eran wrote: >> +/** rdma_addr_find_smac_by_sgid() - Find the src MAC and VLAN ID for a src >> GID >> + * @sgid: Source GID to find the MAC and VLAN for. >> + * @smac: A buffer to contain the resultin

Re: [PATCH v2 02/11] IB/addr: Pass network namespace as a parameter

2015-04-20 Thread Doug Ledford
On Mon, 2015-04-20 at 12:03 +0300, Haggai Eran wrote: > From: Guy Shapiro > > Add network namespace support to the ib_addr module. For that, all the address > resolution and matching should be done using the appropriate namespace instead > of init_net. > > This is achieved by: > > 1. Adding an

Re: [PATCH v2 02/11] IB/addr: Pass network namespace as a parameter

2015-04-20 Thread Jason Gunthorpe
On Mon, Apr 20, 2015 at 12:03:33PM +0300, Haggai Eran wrote: > +/** rdma_addr_find_smac_by_sgid() - Find the src MAC and VLAN ID for a src > GID > + * @sgid:Source GID to find the MAC and VLAN for. > + * @smac:A buffer to contain the resulting MAC address. > + * @vlan_id: Will contain the

[PATCH v2 02/11] IB/addr: Pass network namespace as a parameter

2015-04-20 Thread Haggai Eran
From: Guy Shapiro Add network namespace support to the ib_addr module. For that, all the address resolution and matching should be done using the appropriate namespace instead of init_net. This is achieved by: 1. Adding an explicit network namespace argument to exported function that require