diff options
author | Rosemarie O'Riorden <roriorden@redhat.com> | 2022-04-26 15:24:31 -0400 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-05-04 21:18:08 +0200 |
commit | 7e7083cc4628a2884edb264d3bc68c6655be12f8 (patch) | |
tree | 852f5cb198186c2117cde80efa58637125c068df /Documentation | |
parent | 8523ee2f8a2d15cb320662dcc3a7ffa9bebe704d (diff) | |
download | openvswitch-7e7083cc4628a2884edb264d3bc68c6655be12f8.tar.gz |
dpif-netdev: Replace loop iterating over packet batch with macro.
The function dp_netdev_pmd_flush_output_on_port() iterates over the
p->output_pkts batch directly, when it should be using the special
iterator macro, DP_PACKET_BATCH_FOR_EACH.
However, this wasn't possible because the macro could not accept
&p->output_pkts.
The addition of parentheses when BATCH is dereferenced allows the macro
to expand properly. Parenthesizing arguments in macros is good practice
to be able to handle whichever expressions are passed in.
Signed-off-by: Rosemarie O'Riorden <roriorden@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions