datapath: Don't orphan packets in dp_dev transmit path.
[openvswitch] / datapath / dp_dev.c
index 5aa32f0481cbbf58bfa0d9af3c7dfdece6ba40f3..3902a8c5f2eb21e41070eeeb8dd777f63a421b08 100644 (file)
@@ -86,12 +86,6 @@ static int dp_dev_xmit(struct sk_buff *skb, struct net_device *netdev)
        struct dp_dev *dp_dev = dp_dev_priv(netdev);
        struct pcpu_lstats *lb_stats;
 
-       /* By orphaning 'skb' we will screw up socket accounting slightly, but
-        * the effect is limited to the device queue length.  If we don't
-        * do this, then the sk_buff will be destructed eventually, but it is
-        * harder to predict when. */
-       skb_orphan(skb);
-
        /* dp_process_received_packet() needs its own clone. */
        skb = skb_share_check(skb, GFP_ATOMIC);
        if (!skb)