Packets for which an upcall has failed (lost packets) must be deleted. We also need to count them as MISS and LOST.
Signed-off-by: Daniele Di Proietto <diproiet...@vmware.com> --- lib/dpif-netdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 54bad02..47f81d3 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2950,6 +2950,8 @@ fast_path_processing(struct dp_netdev_pmd_thread *pmd, &ufid, DPIF_UC_MISS, NULL, &actions, &put_actions); if (OVS_UNLIKELY(error && error != ENOSPC)) { + dpif_packet_delete(packets[i]); + dp_netdev_count_packet(pmd, DP_STAT_LOST, 1); continue; } @@ -2997,6 +2999,7 @@ fast_path_processing(struct dp_netdev_pmd_thread *pmd, } } + dp_netdev_count_packet(pmd, DP_STAT_MISS, dropped_cnt); dp_netdev_count_packet(pmd, DP_STAT_LOST, dropped_cnt); } -- 2.1.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev