netdev-linux: Return correct error codes on receive.
authorJesse Gross <jesse@nicira.com>
Fri, 2 Oct 2009 17:31:20 +0000 (10:31 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 2 Oct 2009 17:36:41 +0000 (10:36 -0700)
commitc0e5f6cabeeb8153144fead66c1f37a5014d9060
tree9bb17e5a837ae73bde357c718504cf0af41e0e69
parent3f3879d205ab0df085c6d2ec13a39ee5d8b6242c
netdev-linux: Return correct error codes on receive.

netdev_linux_receive was returning positive error codes while the
interface specifies that it should be returning negative errors.
This difference causes a huge increase in (non-existant) packet
processing with the userspace datapath.
lib/netdev-linux.c