diff options
author | Rob Herring <robh@kernel.org> | 2015-03-10 09:03:04 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-03-10 09:03:04 -0500 |
commit | 2c192699a7050ef5bdf1e2cc95fdddfbcf524509 (patch) | |
tree | 945d4553691ecb24151a2fa83b7d489665dd3248 /net/core/pktgen.c | |
parent | 25e8f336e535d10c30216e1ba330fbea98dfccc5 (diff) | |
parent | 9eccca0843205f87c00404b663188b88eb248051 (diff) | |
download | op-kernel-dev-2c192699a7050ef5bdf1e2cc95fdddfbcf524509.zip op-kernel-dev-2c192699a7050ef5bdf1e2cc95fdddfbcf524509.tar.gz |
Merge tag 'v4.0-rc3' into HEAD
Linux 4.0-rc3
Merging in v4.0-rc3 because commit 30a22c215a00 (console: Fix
console name size mismatch) is a dependency.
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index b4899f5b..508155b 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -1134,6 +1134,9 @@ static ssize_t pktgen_if_write(struct file *file, return len; i += len; + if ((value > 1) && + (!(pkt_dev->odev->priv_flags & IFF_TX_SKB_SHARING))) + return -ENOTSUPP; pkt_dev->burst = value < 1 ? 1 : value; sprintf(pg_result, "OK: burst=%d", pkt_dev->burst); return count; |