1 From foo@baz Wed Mar 11 11:44:33 CET 2015
2 From: Eric Dumazet <edumazet@google.com>
3 Date: Sun, 22 Feb 2015 17:03:41 -0800
4 Subject: net: pktgen: disable xmit_clone on virtual devices
6 From: Eric Dumazet <edumazet@google.com>
8 [ Upstream commit 52d6c8c6ca125872459054daa70f2f1c698c8e75 ]
10 Trying to use burst capability (aka xmit_more) on a virtual device
11 like bonding is not supported.
13 For example, skb might be queued multiple times on a qdisc, with
14 various list corruptions.
16 Fixes: 38b2cf2982dc ("net: pktgen: packet bursting via skb->xmit_more")
17 Signed-off-by: Eric Dumazet <edumazet@google.com>
18 Cc: Alexei Starovoitov <ast@plumgrid.com>
19 Acked-by: Alexei Starovoitov <ast@plumgrid.com>
20 Signed-off-by: David S. Miller <davem@davemloft.net>
21 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 net/core/pktgen.c | 3 +++
24 1 file changed, 3 insertions(+)
26 --- a/net/core/pktgen.c
27 +++ b/net/core/pktgen.c
28 @@ -1134,6 +1134,9 @@ static ssize_t pktgen_if_write(struct fi
33 + (!(pkt_dev->odev->priv_flags & IFF_TX_SKB_SHARING)))
35 pkt_dev->burst = value < 1 ? 1 : value;
36 sprintf(pg_result, "OK: burst=%d", pkt_dev->burst);