Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd: Skip matching on ct flags for stateless configurations.
If no load balancers or "allow-related" ACLs are configured on a logical switch, no packets will be sent to conntrack in the logical switch pipeline and ACL flows in tables ls_in/out_acl will not match on conntrack state. In this case there's no need to try to set ACL hints in tables ls_in/out_acl_hint. Furthermore, setting the hints translates to always generating flows that match on ct.state. Depending on the underlying hardware such flows may not be offloadable inducing a hit in performance even when no conntrack recirculations are required. To avoid iterating through all configured ACLs and load balancers multiple times, we now store two new fields in the 'ovn_datapath' structure: - has_stateful_acl - has_lb_vip Also, rename the 'has_lb_vip()' and 'has_stateful_acl()' functions, prefixing them with 'ls_' to match other helper function names. Fixes: 209ea46 ("ovn-northd: Reduce number of flows generated for stateful ACLs.") Reported-by: Haresh Khandelwal <hakhande@redhat.com> Reported-at: https://bugzilla.redhat.com/1927211 Signed-off-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com> Acked-by: Mark Michelson <mmichels@redhat.com>
- Loading branch information
Showing
3 changed files
with
101 additions
and
13 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
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
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