aboutsummaryrefslogtreecommitdiff
path: root/hw/net/rocker
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-07-01 03:33:10 -0700
committerStefan Hajnoczi <stefanha@redhat.com>2015-07-07 13:13:22 +0100
commit96497af0afd60e57749316f1bc196b417055c585 (patch)
tree2bfcda1300ad807721713ad832a63fe392390926 /hw/net/rocker
parentf211fcd75fec96ec9850885622ed028c6f7ebdf4 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/rocker/rocker_world.c b/hw/net/rocker/rocker_world.c
index b991e871d3..a6b18f1754 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,