forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev-dpdk: Memset rte_flow_item on a need basis.
In netdev_dpdk_add_rte_flow_offload function different rte_flow_item are created as part of the pattern matching. For most of them, there is a check whether the wildcards are not zero. In case of zero, nothing is being done with the rte_flow_item. Befor the wildcard check, and regardless of the result, the rte_flow_item is being memset. The patch moves the memset function only if the condition of the wildcard is true, thus saving cycles of memset if not needed. Signed-off-by: Asaf Penso <[email protected]> Acked-by: Ilya Maximets <[email protected]> Signed-off-by: Ian Stokes <[email protected]>
- Loading branch information
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters