port: fix file descriptor reader
authorAndriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com>
Fri, 31 Mar 2017 13:36:35 +0000 (15:36 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Apr 2017 00:15:26 +0000 (02:15 +0200)
commit614fcaca62ee30b0da570264fa5d2a83e125a75f
tree310759233b568143c3d2da36e940a12d31fa04cf
parent25f2af08844c4a296239ba274b50daa5aaf24298
port: fix file descriptor reader

The code should return the actual number of packets read.

Fixes: 5a99f208 ("port: support file descriptor")

Signed-off-by: Andriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_port/rte_port_fd.c