netdev: Improve comments on netdev_rxq_recv().
authorBen Pfaff <blp@ovn.org>
Sat, 5 Mar 2016 21:38:19 +0000 (13:38 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 8 Mar 2016 04:43:17 +0000 (20:43 -0800)
commite175dc83c5772438466bafb23a17ceb2e052e1c2
treebe9d2c079f504fa0b6f016fa7172173ffa3553a5
parentd79a39fece1731c29615d05f120c0fb6c9a15d34
netdev: Improve comments on netdev_rxq_recv().

The comment was incomplete in some ways and simply wrong in others.

Also ensure that *cnt is set to 0 if an error is encountered.  It's nice
when callers can rely on this.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
lib/netdev-provider.h
lib/netdev.c