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 dst_entry > *dst, > + u32 rt_flags)
It's not just checking, it's also bypassing encapsulation if the check is successful. Would be good to use a name that suggests this effect, e.g. encap_bypass_if_local (I know, not a nice name) or something. Thanks, Jiri