]> git.proxmox.com Git - ovs.git/commit
netdev-dpdk: Minor cleanup of netdev_dpdk_send__.
authorBhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Fri, 22 Sep 2017 09:14:59 +0000 (02:14 -0700)
committerDarrell Ball <dlu998@gmail.com>
Fri, 22 Sep 2017 09:14:59 +0000 (02:14 -0700)
commitfd57eebacb27c9d57a61f6f2575dbc65d1bf57da
treed5d76a95d37bba3d316703dcf86d1445f64c1217
parent8a14bd7b6be517fe94f1f88d5704bf091cfc65b5
netdev-dpdk: Minor cleanup of netdev_dpdk_send__.

The variable 'cnt' is initialized and reused in multiple function calls
inside netdev_dpdk_send__() and is confusing sometimes. Instead introduce
'batch_cnt' to hold the original packet count and 'tx_cnt' to store
the final packet count resulting after filtering and qos operations.

Finally 'tx_cnt' packets gets transmitted on the respective 'qid'.

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Signed-off-by: Darrell Ball <dlu998@gmail.com>
lib/netdev-dpdk.c