2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-05 00:35:33 +00:00

dp-packet: Add index to DP_PACKET_BATCH_FOR_EACH to prevent shadowing.

Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Justin Pettit
2018-02-27 10:41:30 -08:00
parent ccf690ac37
commit e883448e3f
9 changed files with 40 additions and 42 deletions

View File

@@ -3297,7 +3297,7 @@ netdev_dpdk_ring_send(struct netdev *netdev, int qid,
* 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. */
DP_PACKET_BATCH_FOR_EACH (packet, batch) {
DP_PACKET_BATCH_FOR_EACH (i, packet, batch) {
dp_packet_mbuf_rss_flag_reset(packet);
}