diff options
| -rw-r--r-- | drivers/net/vxlan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 725aba37e182..97a306c9e65d 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
| @@ -1014,7 +1014,8 @@ static netdev_tx_t vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev, | |||
| 1014 | } | 1014 | } |
| 1015 | 1015 | ||
| 1016 | /* Bypass encapsulation if the destination is local */ | 1016 | /* Bypass encapsulation if the destination is local */ |
| 1017 | if (rt->rt_flags & RTCF_LOCAL) { | 1017 | if (rt->rt_flags & RTCF_LOCAL && |
| 1018 | !(rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST))) { | ||
| 1018 | struct vxlan_dev *dst_vxlan; | 1019 | struct vxlan_dev *dst_vxlan; |
| 1019 | 1020 | ||
| 1020 | ip_rt_put(rt); | 1021 | ip_rt_put(rt); |
