]> git.proxmox.com Git - ovs.git/commit
netdev: Add optional qfill output parameter to rxq_recv()
authorJan Scheurich <jan.scheurich@ericsson.com>
Thu, 19 Apr 2018 17:40:44 +0000 (19:40 +0200)
committerIan Stokes <ian.stokes@intel.com>
Fri, 11 May 2018 07:08:24 +0000 (08:08 +0100)
commit8492adc270fd9b1774683064764cdf56df995b99
tree903ac545e94ff87e3457b9953b9473e70a60a77c
parent65a87968f4cfd9cf7a433a3156d98118078f9e4e
netdev: Add optional qfill output parameter to rxq_recv()

If the caller provides a non-NULL qfill pointer and the netdev
implemementation supports reading the rx queue fill level, the rxq_recv()
function returns the remaining number of packets in the rx queue after
reception of the packet burst to the caller. If the implementation does
not support this, it returns -ENOTSUP instead. Reading the remaining queue
fill level should not substantilly slow down the recv() operation.

A first implementation is provided for ethernet and vhostuser DPDK ports
in netdev-dpdk.c.

This output parameter will be used in the upcoming commit for PMD
performance metrics to supervise the rx queue fill level for DPDK
vhostuser ports.

Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com>
Acked-by: Billy O'Mahony <billy.o.mahony@intel.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/dpif-netdev.c
lib/netdev-bsd.c
lib/netdev-dpdk.c
lib/netdev-dummy.c
lib/netdev-linux.c
lib/netdev-provider.h
lib/netdev.c
lib/netdev.h