Re: [PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-21 Thread David Miller
From: David Ahern Date: Thu, 17 Aug 2017 12:17:20 -0700 > One nagging difference between ipv4 and ipv6 is host routes for ipv6 > addresses are installed using the loopback device or VRF / L3 Master > device. e.g., > > 2001:db8:1::/120 dev veth0 proto kernel metric 256 pref medium > local

Re: [PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-21 Thread David Ahern
On 8/18/17 6:28 PM, Hannes Frederic Sowa wrote: > David Ahern writes: > >> On 8/18/17 6:05 PM, David Ahern wrote: >>> On 8/18/17 5:15 PM, Hannes Frederic Sowa wrote: Hello David, David Ahern writes: > @@ -2688,15 +2716,9 @@ struct rt6_info *addrconf_dst_alloc(struct

Re: [PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-19 Thread David Miller
From: David Ahern Date: Fri, 18 Aug 2017 18:05:56 -0600 > On 8/18/17 5:15 PM, Hannes Frederic Sowa wrote: >> Hello David, >> >> David Ahern writes: >> >>> @@ -2688,15 +2716,9 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev >>> *idev, >>> { >>> u32 tb_id; >>> struct net *net =

Re: [PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-18 Thread Hannes Frederic Sowa
David Ahern writes: > On 8/18/17 6:05 PM, David Ahern wrote: >> On 8/18/17 5:15 PM, Hannes Frederic Sowa wrote: >>> Hello David, >>> >>> David Ahern writes: >>> @@ -2688,15 +2716,9 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev, { u32 tb_id; struct

Re: [PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-18 Thread David Ahern
On 8/18/17 6:05 PM, David Ahern wrote: > On 8/18/17 5:15 PM, Hannes Frederic Sowa wrote: >> Hello David, >> >> David Ahern writes: >> >>> @@ -2688,15 +2716,9 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev >>> *idev, >>> { >>> u32 tb_id; >>> struct net *net = dev_net(idev->dev);

Re: [PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-18 Thread David Ahern
On 8/18/17 5:15 PM, Hannes Frederic Sowa wrote: > Hello David, > > David Ahern writes: > >> @@ -2688,15 +2716,9 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev >> *idev, >> { >> u32 tb_id; >> struct net *net = dev_net(idev->dev); >> -struct net_device *dev = net->loopback

Re: [PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-18 Thread Hannes Frederic Sowa
Hello David, David Ahern writes: > @@ -2688,15 +2716,9 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev > *idev, > { > u32 tb_id; > struct net *net = dev_net(idev->dev); > - struct net_device *dev = net->loopback_dev; > + struct net_device *dev = idev->dev; > s

[PATCH v2 net-next] net: ipv6: put host and anycast routes on device with address

2017-08-17 Thread David Ahern
One nagging difference between ipv4 and ipv6 is host routes for ipv6 addresses are installed using the loopback device or VRF / L3 Master device. e.g., 2001:db8:1::/120 dev veth0 proto kernel metric 256 pref medium local 2001:db8:1::1 dev lo table local proto kernel metric 0 pref medium U