@@ -107,7 +107,7 @@ struct sw_flow *ovs_flow_alloc(void)
107107 return ERR_PTR (- ENOMEM );
108108}
109109
110- int ovs_flow_tbl_count (struct flow_table * table )
110+ int ovs_flow_tbl_count (const struct flow_table * table )
111111{
112112 return table -> count ;
113113}
@@ -401,7 +401,7 @@ static bool flow_cmp_masked_key(const struct sw_flow *flow,
401401}
402402
403403bool ovs_flow_cmp_unmasked_key (const struct sw_flow * flow ,
404- struct sw_flow_match * match )
404+ const struct sw_flow_match * match )
405405{
406406 struct sw_flow_key * key = match -> key ;
407407 int key_start = flow_key_start (key );
@@ -412,7 +412,7 @@ bool ovs_flow_cmp_unmasked_key(const struct sw_flow *flow,
412412
413413static struct sw_flow * masked_flow_lookup (struct table_instance * ti ,
414414 const struct sw_flow_key * unmasked ,
415- struct sw_flow_mask * mask )
415+ const struct sw_flow_mask * mask )
416416{
417417 struct sw_flow * flow ;
418418 struct hlist_head * head ;
@@ -460,7 +460,7 @@ struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl,
460460}
461461
462462struct sw_flow * ovs_flow_tbl_lookup_exact (struct flow_table * tbl ,
463- struct sw_flow_match * match )
463+ const struct sw_flow_match * match )
464464{
465465 struct table_instance * ti = rcu_dereference_ovsl (tbl -> ti );
466466 struct sw_flow_mask * mask ;
@@ -563,7 +563,7 @@ static struct sw_flow_mask *flow_mask_find(const struct flow_table *tbl,
563563
564564/* Add 'mask' into the mask list, if it is not already there. */
565565static int flow_mask_insert (struct flow_table * tbl , struct sw_flow * flow ,
566- struct sw_flow_mask * new )
566+ const struct sw_flow_mask * new )
567567{
568568 struct sw_flow_mask * mask ;
569569 mask = flow_mask_find (tbl , new );
@@ -586,7 +586,7 @@ static int flow_mask_insert(struct flow_table *tbl, struct sw_flow *flow,
586586
587587/* Must be called with OVS mutex held. */
588588int ovs_flow_tbl_insert (struct flow_table * table , struct sw_flow * flow ,
589- struct sw_flow_mask * mask )
589+ const struct sw_flow_mask * mask )
590590{
591591 struct table_instance * new_ti = NULL ;
592592 struct table_instance * ti ;
0 commit comments