]> git.proxmox.com Git - ovs.git/commit - lib/netdev-dpdk.c
netdev-dpdk: Fix vHost stats.
authorIlya Maximets <i.maximets@samsung.com>
Thu, 18 Aug 2016 13:13:58 +0000 (16:13 +0300)
committerDaniele Di Proietto <diproiettod@vmware.com>
Thu, 18 Aug 2016 20:15:52 +0000 (13:15 -0700)
commitc6ec9d176dbfe364eb8b4a54d195c0a81f35cd45
tree91114a93b78dd933b39b2c7280692c93a495b56b
parent052fa3ac96a8109ef60fa5ad23056dac442e511d
netdev-dpdk: Fix vHost stats.

This patch introduces function 'netdev_dpdk_filter_packet_len()' which is
intended to find and remove all packets with 'pkt_len > max_packet_len'
from the Tx batch.

It fixes inaccurate counting of 'tx_bytes' in vHost case if there was
dropped packets and allows to simplify send function.

Fixes: 0072e931b207 ("netdev-dpdk: add support for jumbo frames")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c