diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-07-01 03:33:10 -0700 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-07 13:13:22 +0100 |
commit | 96497af0afd60e57749316f1bc196b417055c585 (patch) | |
tree | 2bfcda1300ad807721713ad832a63fe392390926 /hw/net/rocker | |
parent | f211fcd75fec96ec9850885622ed028c6f7ebdf4 (diff) | |
download | qemu-96497af0afd60e57749316f1bc196b417055c585.zip qemu-96497af0afd60e57749316f1bc196b417055c585.tar.gz qemu-96497af0afd60e57749316f1bc196b417055c585.tar.bz2 |
rocker: return -1 when dropping packet on ingress
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Message-id: 1435746792-41278-4-git-send-email-sfeldma@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/rocker')
-rw-r--r-- | hw/net/rocker/rocker_world.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/rocker/rocker_world.c b/hw/net/rocker/rocker_world.c index b991e87..a6b18f1 100644 --- a/hw/net/rocker/rocker_world.c +++ b/hw/net/rocker/rocker_world.c @@ -32,7 +32,7 @@ ssize_t world_ingress(World *world, uint32_t pport, return world->ops->ig(world, pport, iov, iovcnt); } - return iov_size(iov, iovcnt); + return -1; } int world_do_cmd(World *world, DescInfo *info, |