diff options
author | Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> | 2017-09-22 02:05:49 -0700 |
---|---|---|
committer | Darrell Ball <dlu998@gmail.com> | 2017-09-22 02:05:49 -0700 |
commit | 8a543eb03a63d3042b0dae754b9d1fdcb6c5efcf (patch) | |
tree | 1ff8c6b5e15416e8244484e8fec126b57904df82 /lib | |
parent | 43495c45772c6d58a94dfe0723dfaf35c3580c4e (diff) | |
download | openvswitch-8a543eb03a63d3042b0dae754b9d1fdcb6c5efcf.tar.gz |
netdev-dpdk: Use DP_PACKET_BATCH_FOR_EACH in netdev_dpdk_ring_send.
Use DP_PACKET_BATCH_FOR_EACH macro in netdev_dpdk_ring_send().
Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Signed-off-by: Darrell Ball <dlu998@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/netdev-dpdk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 648d719ba..60ec5288d 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -2942,14 +2942,14 @@ netdev_dpdk_ring_send(struct netdev *netdev, int qid, bool concurrent_txq) { struct netdev_dpdk *dev = netdev_dpdk_cast(netdev); - unsigned i; + struct dp_packet *packet; /* When using 'dpdkr' and sending to a DPDK ring, we want to ensure that * the rss hash field is clear. This is because the same mbuf may be * modified by the consumer of the ring and return into the datapath * without recalculating the RSS hash. */ - for (i = 0; i < batch->count; i++) { - dp_packet_mbuf_rss_flag_reset(batch->packets[i]); + DP_PACKET_BATCH_FOR_EACH (packet, batch) { + dp_packet_mbuf_rss_flag_reset(packet); } netdev_dpdk_send__(dev, qid, batch, may_steal, concurrent_txq); |