Re: [PATCH net-next v2 5/7] vxlan: simplify RTF_LOCAL handling.

2016-11-09 Thread Pravin Shelar
On Wed, Nov 9, 2016 at 8:53 AM, Jiri Benc wrote: > On Sat, 5 Nov 2016 11:45:55 -0700, Pravin B Shelar wrote: >> +static int check_route_rtf_local(struct sk_buff *skb, struct net_device >> *dev, >> + struct vxlan_dev *vxlan, union vxlan_addr >>

Re: [PATCH net-next v2 5/7] vxlan: simplify RTF_LOCAL handling.

2016-11-09 Thread Jiri Benc
On Sat, 5 Nov 2016 11:45:55 -0700, Pravin B Shelar wrote: > +static int check_route_rtf_local(struct sk_buff *skb, struct net_device *dev, > + struct vxlan_dev *vxlan, union vxlan_addr > *daddr, > + __be32 dst_port, __be32 vni, struct

[PATCH net-next v2 5/7] vxlan: simplify RTF_LOCAL handling.

2016-11-05 Thread Pravin B Shelar
Avoid code duplicate code for handling RTF_LOCAL routes. Signed-off-by: Pravin B Shelar --- drivers/net/vxlan.c | 85 +++-- 1 file changed, 50 insertions(+), 35 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c