Re: [PATCH net-next] ipvlan: read direct ifindex instead of iflink

2015-10-22 Thread David Miller
From: Brenden Blanco Date: Tue, 20 Oct 2015 16:47:33 -0700 > In the ipv4 outbound path of an ipvlan device in l3 mode, the ifindex is > being grabbed from dev_get_iflink. This works for the physical device > case, since as the documentation of that function notes: "Physical > interfaces have the

Re: [PATCH net-next] ipvlan: read direct ifindex instead of iflink

2015-10-21 Thread Mahesh Bandewar
On Tue, Oct 20, 2015 at 4:47 PM, Brenden Blanco wrote: > In the ipv4 outbound path of an ipvlan device in l3 mode, the ifindex is > being grabbed from dev_get_iflink. This works for the physical device > case, since as the documentation of that function notes: "Physical > interfaces have the same

Re: [PATCH net-next] ipvlan: read direct ifindex instead of iflink

2015-10-21 Thread Jiri Benc
On Tue, 20 Oct 2015 16:47:33 -0700, Brenden Blanco wrote: > --- a/drivers/net/ipvlan/ipvlan_core.c > +++ b/drivers/net/ipvlan/ipvlan_core.c > @@ -348,7 +348,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *skb) > struct rtable *rt; > int err, ret = NET_XMIT_DROP; > struc

[PATCH net-next] ipvlan: read direct ifindex instead of iflink

2015-10-20 Thread Brenden Blanco
In the ipv4 outbound path of an ipvlan device in l3 mode, the ifindex is being grabbed from dev_get_iflink. This works for the physical device case, since as the documentation of that function notes: "Physical interfaces have the same 'ifindex' and 'iflink' values.". However, if the master device