[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1968568728.2717792.1365753952925.JavaMail.root@redhat.com>
Date: Fri, 12 Apr 2013 04:05:52 -0400 (EDT)
From: Cong Wang <amwang@...hat.com>
To: Sridhar Samudrala <sri@...ibm.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>
Subject: Re: [Patch net-next] vxlan: revert "vxlan: Bypass encapsulation if
the destination is local"
----- Original Message -----
>
> The following patch fixes the issue for me. can you try it out?
>
> diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
> index 9a64715..d6509de 100644
> --- a/drivers/net/vxlan.c
> +++ b/drivers/net/vxlan.c
> @@ -1013,7 +1013,7 @@ static netdev_tx_t vxlan_xmit_one(struct sk_buff *skb,
> struct net_device *dev,
> }
>
> /* Bypass encapsulation if the destination is local */
> - if (rt->rt_flags & RTCF_LOCAL) {
> + if (rt->dst.dev->flags & IFF_LOOPBACK) {
> struct vxlan_dev *dst_vxlan;
>
> ip_rt_put(rt);
>
It almost surely can fix the problem, but do you really just want to bypass
encap for loopback devcie? Not all local devices?
The title of your original commit "vxlan: Bypass encapsulation if the destination is local"
is confusing...
(Sorry for the delay, I am on vacation.)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists