[ovs-dev] [PATCH net-next 5/8] vxlan: Factor out vxlan send api.

David Stevens dlstevens at us.ibm.com
Thu Jun 20 12:46:42 UTC 2013


> From: Pravin B Shelar <pshelar at nicira.com>
 

> @@ -1205,13 +1222,13 @@ static netdev_tx_t vxlan_xmit(struct sk_buff
> *skb, struct net_device *dev)
> 
>        skb1 = skb_clone(skb, GFP_ATOMIC);
>        if (skb1) {
> -         rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
> +         rc1 = __vxlan_xmit(skb1, dev, rdst, did_rsc);
>           if (rc == NETDEV_TX_OK)
>              rc = rc1;
>        }
>     }
> 
> -   rc1 = vxlan_xmit_one(skb, dev, rdst0, did_rsc);
> +   rc1 = __vxlan_xmit(skb, dev, rdst0, did_rsc);
>     if (rc == NETDEV_TX_OK)
>        rc = rc1;
>     return rc;

You're changing the name of the function that sends a
packet to one destination because you think "__vxlan_xmit"
is more descriptive than "vxlan_xmit_one" ?

                                                +-DLS




More information about the dev mailing list