[PATCH net-next 1/2] net: l3mdev: Move get_saddr and rt6_dst

2016-05-07 Thread David Ahern
Move l3mdev_rt6_dst_by_oif and l3mdev_get_saddr to l3mdev.c. Collapse l3mdev_get_rt6_dst into l3mdev_rt6_dst_by_oif since it is the only user and keep the l3mdev_get_rt6_dst name for consistency with other hooks. A follow-on patch adds more code to these functions making them long for inlined func

Re: [PATCH net-next 1/2] net: l3mdev: Move get_saddr and rt6_dst

2016-05-07 Thread David Miller
From: David Ahern Date: Wed, 4 May 2016 21:54:09 -0700 > + if (dev && netif_is_l3_master(dev) && > + dev->l3mdev_ops->l3mdev_get_saddr) { > + rc = dev->l3mdev_ops->l3mdev_get_saddr(dev, fl4); > + } Please do not use braces for single s

[PATCH net-next 1/2] net: l3mdev: Move get_saddr and rt6_dst

2016-05-04 Thread David Ahern
Move l3mdev_rt6_dst_by_oif and l3mdev_get_saddr to l3mdev.c. Collapse l3mdev_get_rt6_dst into l3mdev_rt6_dst_by_oif since it is the only user and keep the l3mdev_get_rt6_dst name for consistency with other hooks. A follow-on patch adds more code to these functions making them long for inlined func