pktgen: ndo_start_xmit can return NET_XMIT_xxx values
authorJohn Fastabend <john.r.fastabend@intel.com>
Thu, 24 Dec 2009 06:02:57 +0000 (22:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2009 06:02:57 +0000 (22:02 -0800)
commitf466dba1832f05006cf6caa9be41fb98d11cb848
treed6bd5846aed13f269f3e6e1406b1a26abebc5bcd
parentc0d7a0212becebe11ffe6979ee3d6f1c4104568d
pktgen: ndo_start_xmit can return NET_XMIT_xxx values

This updates pktgen so that it does not decrement skb->users
when it receives valid NET_XMIT_xxx values.  These are now
valid return values from ndo_start_xmit in net-next-2.6.
They also indicate the skb has been consumed.

This fixes pktgen to work correctly with vlan devices.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c