mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
treewide: Wider use of packet batch APIs.
This patch replaces most of direct accesses to the dp_packet_batch internal components by appropriate APIs. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
committed by
Ian Stokes
parent
f916262832
commit
1270b6e52c
@@ -717,7 +717,7 @@ odp_execute_actions(void *dp, struct dp_packet_batch *batch, bool steal,
|
||||
|
||||
dp_execute_action(dp, batch, a, should_steal);
|
||||
|
||||
if (last_action || batch->count == 0) {
|
||||
if (last_action || dp_packet_batch_is_empty(batch)) {
|
||||
/* We do not need to free the packets.
|
||||
* Either dp_execute_actions() has stolen them
|
||||
* or the batch is freed due to errors. In either
|
||||
|
Reference in New Issue
Block a user