net: pktgen: disable xmit_clone on virtual devices
authorEric Dumazet <[email protected]>
Mon, 23 Feb 2015 01:03:41 +0000 (17:03 -0800)
committerDavid S. Miller <[email protected]>
Mon, 23 Feb 2015 03:43:20 +0000 (22:43 -0500)
commit52d6c8c6ca125872459054daa70f2f1c698c8e75
treeaf878f4a4180cf1d233d190b0c73fae9fd0e99f7
parent87cda7cb4380fa05b70485b0a57b07d020f5204b
net: pktgen: disable xmit_clone on virtual devices

Trying to use burst capability (aka xmit_more) on a virtual device
like bonding is not supported.

For example, skb might be queued multiple times on a qdisc, with
various list corruptions.

Fixes: 38b2cf2982dc ("net: pktgen: packet bursting via skb->xmit_more")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/pktgen.c