@@ -111,8 +111,7 @@ consider_logical_flow(const struct sbrec_logical_flow *lflow,
111111static void
112112consider_lb_hairpin_flows (const struct ovn_controller_lb * lb ,
113113 const struct hmap * local_datapaths ,
114- struct ovn_desired_flow_table * flow_table ,
115- bool register_consolidation );
114+ struct ovn_desired_flow_table * flow_table );
116115
117116static void add_port_sec_flows (const struct shash * binding_lports ,
118117 const struct sbrec_chassis * ,
@@ -926,8 +925,6 @@ add_matches_to_flow_table(const struct sbrec_logical_flow *lflow,
926925 .collector_ids = l_ctx_in -> collector_ids ,
927926 .lflow_uuid = lflow -> header_ .uuid ,
928927 .dp_key = ldp -> datapath -> tunnel_key ,
929- .explicit_arp_ns_output = l_ctx_in -> explicit_arp_ns_output ,
930- .register_consolidation = l_ctx_in -> register_consolidation ,
931928
932929 .pipeline = ingress ? OVNACT_P_INGRESS : OVNACT_P_EGRESS ,
933930 .ingress_ptable = OFTABLE_LOG_INGRESS_PIPELINE ,
@@ -1594,8 +1591,7 @@ static void
15941591add_lb_vip_hairpin_flows (const struct ovn_controller_lb * lb ,
15951592 struct ovn_lb_vip * lb_vip ,
15961593 struct ovn_lb_backend * lb_backend ,
1597- struct ovn_desired_flow_table * flow_table ,
1598- bool register_consolidation )
1594+ struct ovn_desired_flow_table * flow_table )
15991595{
16001596 uint64_t stub [1024 / 8 ];
16011597 struct ofpbuf ofpacts = OFPBUF_STUB_INITIALIZER (stub );
@@ -1613,10 +1609,8 @@ add_lb_vip_hairpin_flows(const struct ovn_controller_lb *lb,
16131609 match_set_dl_type (& hairpin_match , htons (ETH_TYPE_IP ));
16141610 match_set_nw_src (& hairpin_match , bip4 );
16151611 match_set_nw_dst (& hairpin_match , bip4 );
1616- enum mf_field_id id = register_consolidation
1617- ? MFF_LOG_LB_ORIG_DIP_IPV4
1618- : MFF_LOG_LB_ORIG_DIP_IPV4_OLD ;
1619- match_set_reg (& hairpin_match , id - MFF_LOG_REG0 , ntohl (vip4 ));
1612+ match_set_reg (& hairpin_match , MFF_LOG_LB_ORIG_DIP_IPV4 - MFF_LOG_REG0 ,
1613+ ntohl (vip4 ));
16201614
16211615 add_lb_vip_hairpin_reply_action (NULL , snat_vip4 , lb -> proto ,
16221616 lb_backend -> port ,
@@ -1714,8 +1708,7 @@ static void
17141708add_lb_ct_snat_hairpin_vip_flow (const struct ovn_controller_lb * lb ,
17151709 const struct ovn_lb_vip * lb_vip ,
17161710 const struct hmap * local_datapaths ,
1717- struct ovn_desired_flow_table * flow_table ,
1718- bool register_consolidation )
1711+ struct ovn_desired_flow_table * flow_table )
17191712{
17201713 uint64_t stub [1024 / 8 ];
17211714 struct ofpbuf ofpacts = OFPBUF_STUB_INITIALIZER (stub );
@@ -1760,10 +1753,8 @@ add_lb_ct_snat_hairpin_vip_flow(const struct ovn_controller_lb *lb,
17601753 ovs_be32 vip4 = in6_addr_get_mapped_ipv4 (& lb_vip -> vip );
17611754
17621755 match_set_dl_type (& match , htons (ETH_TYPE_IP ));
1763- enum mf_field_id id = register_consolidation
1764- ? MFF_LOG_LB_ORIG_DIP_IPV4
1765- : MFF_LOG_LB_ORIG_DIP_IPV4_OLD ;
1766- match_set_reg (& match , id - MFF_LOG_REG0 , ntohl (vip4 ));
1756+ match_set_reg (& match , MFF_LOG_LB_ORIG_DIP_IPV4 - MFF_LOG_REG0 ,
1757+ ntohl (vip4 ));
17671758 } else {
17681759 match_set_dl_type (& match , htons (ETH_TYPE_IPV6 ));
17691760 ovs_be128 vip6_value ;
@@ -1828,8 +1819,7 @@ add_lb_ct_snat_hairpin_vip_flow(const struct ovn_controller_lb *lb,
18281819static void
18291820add_lb_ct_snat_hairpin_flows (const struct ovn_controller_lb * lb ,
18301821 const struct hmap * local_datapaths ,
1831- struct ovn_desired_flow_table * flow_table ,
1832- bool register_consolidation )
1822+ struct ovn_desired_flow_table * flow_table )
18331823{
18341824 /* We must add a flow for each LB VIP. In the general case, this flow
18351825 is added to the OFTABLE_CT_SNAT_HAIRPIN table. If it matches, we
@@ -1863,42 +1853,37 @@ add_lb_ct_snat_hairpin_flows(const struct ovn_controller_lb *lb,
18631853
18641854 for (int i = 0 ; i < lb -> n_vips ; i ++ ) {
18651855 add_lb_ct_snat_hairpin_vip_flow (lb , & lb -> vips [i ], local_datapaths ,
1866- flow_table , register_consolidation );
1856+ flow_table );
18671857 }
18681858}
18691859
18701860static void
18711861consider_lb_hairpin_flows (const struct ovn_controller_lb * lb ,
18721862 const struct hmap * local_datapaths ,
1873- struct ovn_desired_flow_table * flow_table ,
1874- bool register_consolidation )
1863+ struct ovn_desired_flow_table * flow_table )
18751864{
18761865 for (size_t i = 0 ; i < lb -> n_vips ; i ++ ) {
18771866 struct ovn_lb_vip * lb_vip = & lb -> vips [i ];
18781867
18791868 struct ovn_lb_backend * lb_backend ;
18801869 VECTOR_FOR_EACH_PTR (& lb_vip -> backends , lb_backend ) {
1881- add_lb_vip_hairpin_flows (lb , lb_vip , lb_backend , flow_table ,
1882- register_consolidation );
1870+ add_lb_vip_hairpin_flows (lb , lb_vip , lb_backend , flow_table );
18831871 }
18841872 }
18851873
1886- add_lb_ct_snat_hairpin_flows (lb , local_datapaths , flow_table ,
1887- register_consolidation );
1874+ add_lb_ct_snat_hairpin_flows (lb , local_datapaths , flow_table );
18881875}
18891876
18901877/* Adds OpenFlow flows to flow tables for each Load balancer VIPs and
18911878 * backends to handle the load balanced hairpin traffic. */
18921879static void
18931880add_lb_hairpin_flows (const struct hmap * local_lbs ,
18941881 const struct hmap * local_datapaths ,
1895- struct ovn_desired_flow_table * flow_table ,
1896- bool register_consolidation )
1882+ struct ovn_desired_flow_table * flow_table )
18971883{
18981884 const struct ovn_controller_lb * lb ;
18991885 HMAP_FOR_EACH (lb , hmap_node , local_lbs ) {
1900- consider_lb_hairpin_flows (lb , local_datapaths , flow_table ,
1901- register_consolidation );
1886+ consider_lb_hairpin_flows (lb , local_datapaths , flow_table );
19021887 }
19031888}
19041889
@@ -2059,8 +2044,7 @@ lflow_run(struct lflow_ctx_in *l_ctx_in, struct lflow_ctx_out *l_ctx_out)
20592044 l_ctx_out -> flow_table );
20602045 add_lb_hairpin_flows (l_ctx_in -> local_lbs ,
20612046 l_ctx_in -> local_datapaths ,
2062- l_ctx_out -> flow_table ,
2063- l_ctx_in -> register_consolidation );
2047+ l_ctx_out -> flow_table );
20642048 add_fdb_flows (l_ctx_in -> fdb_table , l_ctx_in -> local_datapaths ,
20652049 l_ctx_out -> flow_table ,
20662050 l_ctx_in -> sbrec_port_binding_by_key ,
@@ -2319,8 +2303,7 @@ lflow_handle_changed_lbs(struct lflow_ctx_in *l_ctx_in,
23192303 UUID_FMT , UUID_ARGS (& uuid_node -> uuid ));
23202304 ofctrl_remove_flows (l_ctx_out -> flow_table , & uuid_node -> uuid );
23212305 consider_lb_hairpin_flows (lb , l_ctx_in -> local_datapaths ,
2322- l_ctx_out -> flow_table ,
2323- l_ctx_in -> register_consolidation );
2306+ l_ctx_out -> flow_table );
23242307 }
23252308
23262309 UUIDSET_FOR_EACH (uuid_node , new_lbs ) {
@@ -2329,8 +2312,7 @@ lflow_handle_changed_lbs(struct lflow_ctx_in *l_ctx_in,
23292312 VLOG_DBG ("Add load balancer hairpin flows for " UUID_FMT ,
23302313 UUID_ARGS (& uuid_node -> uuid ));
23312314 consider_lb_hairpin_flows (lb , l_ctx_in -> local_datapaths ,
2332- l_ctx_out -> flow_table ,
2333- l_ctx_in -> register_consolidation );
2315+ l_ctx_out -> flow_table );
23342316 }
23352317
23362318 return true;
0 commit comments