[PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-12-16 Thread David Ahern
Add helper to lookup l3mdev master index given a device index. Signed-off-by: David Ahern --- include/net/l3mdev.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/net/l3mdev.h b/include/net/l3mdev.h index 774d85b2d5d9..786226f8e77b 100644 --- a/include/net/l3

[PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-12-15 Thread David Ahern
Add helper to lookup l3mdev master index given a device index. Signed-off-by: David Ahern --- include/net/l3mdev.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/net/l3mdev.h b/include/net/l3mdev.h index 774d85b2d5d9..786226f8e77b 100644 --- a/include/net/l3

Re: [PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-11-23 Thread David Ahern
On 11/22/15 9:35 PM, David Miller wrote: From: David Ahern Date: Sun, 22 Nov 2015 21:02:04 -0700 I am confused by that response given that sk_bound_dev_if is one of the key principals for the VRF implementation. Applications wanting to communicate over interfaces in a VRF have to set sk_bound_

Re: [PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-11-22 Thread David Miller
From: David Ahern Date: Sun, 22 Nov 2015 21:02:04 -0700 > I am confused by that response given that sk_bound_dev_if is one of > the key principals for the VRF implementation. Applications wanting to > communicate over interfaces in a VRF have to set sk_bound_dev_if. Yes, they have to set it expl

Re: [PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-11-22 Thread David Ahern
On 11/22/15 11:17 AM, David Miller wrote: From: David Ahern Date: Sun, 22 Nov 2015 10:30:32 -0700 In this case ... I understand the problem you are trying to solve, but I am saying you can't use sk_bound_dev_if to use it. I am confused by that response given that sk_bound_dev_if is one of

Re: [PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-11-22 Thread David Miller
From: David Ahern Date: Sun, 22 Nov 2015 10:30:32 -0700 > In this case ... I understand the problem you are trying to solve, but I am saying you can't use sk_bound_dev_if to use it. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.ke

Re: [PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-11-22 Thread David Ahern
On 11/22/15 10:23 AM, David Miller wrote: From: David Ahern Date: Thu, 19 Nov 2015 12:32:00 -0800 Add helper to lookup master index given a device index. Signed-off-by: David Ahern I don't like where this is going. sk->sk_bound_dev_if is for device bindings which the user has explicitly a

Re: [PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-11-22 Thread David Miller
From: David Ahern Date: Thu, 19 Nov 2015 12:32:00 -0800 > Add helper to lookup master index given a device index. > > Signed-off-by: David Ahern I don't like where this is going. sk->sk_bound_dev_if is for device bindings which the user has explicitly asked for. We should never, therefore, a

[PATCH net-next 1/2] net: l3mdev: Add master device lookup by index

2015-11-19 Thread David Ahern
Add helper to lookup master index given a device index. Signed-off-by: David Ahern --- include/net/l3mdev.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/net/l3mdev.h b/include/net/l3mdev.h index 774d85b2d5d9..786226f8e77b 100644 --- a/include/net/l3mdev.h