Skip to content

Commit

Permalink
rocker: return -1 when dropping packet on ingress
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
scottfeldman authored and stefanhaRH committed Jul 7, 2015
1 parent f211fcd commit 96497af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/net/rocker/rocker_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 96497af

Please sign in to comment.