Orphan and clone packets transmitted on dp_dev (proper fix for bug #478).
authorBen Pfaff <blp@nicira.com>
Tue, 11 Nov 2008 22:08:41 +0000 (14:08 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Nov 2008 20:38:44 +0000 (12:38 -0800)
commitc8833cd64280d5562becaa73e0acaee85d4c1be2
tree8bfb6f07f1770169f44181e3a755c1b9368913ac
parent28bbd8e36486de1b578e498bae1c4d650f26305d
Orphan and clone packets transmitted on dp_dev (proper fix for bug #478).

We need to orphan packets transmitted on dp_dev so that any socket that
the packets came from is no longer charged for them.  If we don't do
this, then the sk_buff will be destructed eventually, but it is
harder to predict when.

We need to clone packets because we are sticking them on
&dp_dev->xmit_queue, which is done by modifying the sk_buff, which we
can only do if it is not shared.
datapath/dp_dev.c