Re: [PATCH net-next] generalize VXLAN forwarding tables
From: Eric Dumazet <hidden>
Date: 2013-02-28 22:27:57
From: Eric Dumazet <hidden>
Date: 2013-02-28 22:27:57
On Thu, 2013-02-28 at 14:23 -0500, David L Stevens wrote:
+ /* if there are multiple destinations, send copies */
+ for (rdst = rdst0->remote_next; rdst; rdst = rdst->remote_next) {
+ struct sk_buff *skb1;
+
+ skb1 = skb_clone(skb, GFP_ATOMIC);
+ rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
+ if (rc == NETDEV_TX_OK)
+ rc = rc1;
+ }
+
+ rc1 = vxlan_xmit_one(skb, dev, rdst0, did_rsc);
+ if (rc == NETDEV_TX_OK)
+ rc = rc1;
+ return rc;
+}It looks like vxlan_xmit_one() will overwrite header So skb_clone() is probably not what you wanted ?