[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <OF112514D1.BA5AC352-ON85257B3A.00666CE7-85257B3A.0066D5ED@us.ibm.com>
Date: Tue, 26 Mar 2013 14:43:18 -0400
From: David Stevens <dlstevens@...ibm.com>
To: Pravin B Shelar <pshelar@...ira.com>
Cc: davem@...emloft.net, jesse@...ira.com, netdev@...r.kernel.org,
netdev-owner@...r.kernel.org, Pravin B Shelar <pshelar@...ira.com>,
Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [PATCH net-next] VXLAN: Precompute vin for VXLAN header.
netdev-owner@...r.kernel.org wrote on 03/26/2013 02:28:59 PM:
Signed-off-by: Pravin B Shelar <pshelar@...ira.com>
> @@ -1006,7 +1004,7 @@ static netdev_tx_t vxlan_xmit_one(struct
> sk_buff *skb, struct net_device *dev,
>
> vxh = (struct vxlanhdr *) __skb_push(skb, sizeof(*vxh));
> vxh->vx_flags = htonl(VXLAN_FLAGS);
> - vxh->vx_vni = htonl(vni << 8);
> + vxh->vx_vni = vxlan->vni;
This is not correct since vni != vxlan->vni if an alternate
vni is specified via the fdb entry. You would need to also store
the fdb vni's as htonl(vni<<<8) and translate those back for netlink
dump operations, too.
+-DLS
--
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