Lines Matching refs:match

102 	struct devlink_dpipe_match match = {0};  in mlxsw_sp_dpipe_table_erif_matches_dump()  local
104 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_erif_matches_dump()
105 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_matches_dump()
106 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_erif_matches_dump()
108 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_erif_matches_dump()
112 mlxsw_sp_erif_match_action_prepare(struct devlink_dpipe_match *match, in mlxsw_sp_erif_match_action_prepare() argument
119 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_erif_match_action_prepare()
120 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_erif_match_action_prepare()
121 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_erif_match_action_prepare()
126 struct devlink_dpipe_match *match, in mlxsw_sp_erif_entry_prepare() argument
136 match_value->match = match; in mlxsw_sp_erif_entry_prepare()
197 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_entries_dump() local
207 mlxsw_sp_erif_match_action_prepare(&match, &action); in mlxsw_sp_dpipe_table_erif_entries_dump()
208 err = mlxsw_sp_erif_entry_prepare(&entry, &match_value, &match, in mlxsw_sp_dpipe_table_erif_entries_dump()
313 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_host_matches_dump() local
316 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_matches_dump()
317 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_host_matches_dump()
318 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_host_matches_dump()
320 err = devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_host_matches_dump()
326 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_matches_dump()
327 match.header = &devlink_dpipe_header_ipv4; in mlxsw_sp_dpipe_table_host_matches_dump()
328 match.field_id = DEVLINK_DPIPE_FIELD_IPV4_DST_IP; in mlxsw_sp_dpipe_table_host_matches_dump()
331 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_matches_dump()
332 match.header = &devlink_dpipe_header_ipv6; in mlxsw_sp_dpipe_table_host_matches_dump()
333 match.field_id = DEVLINK_DPIPE_FIELD_IPV6_DST_IP; in mlxsw_sp_dpipe_table_host_matches_dump()
340 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_host_matches_dump()
372 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_host_match_action_prepare() local
374 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_RIF]; in mlxsw_sp_dpipe_table_host_match_action_prepare()
375 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_match_action_prepare()
376 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_host_match_action_prepare()
377 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_host_match_action_prepare()
379 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_DIP]; in mlxsw_sp_dpipe_table_host_match_action_prepare()
380 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_match_action_prepare()
383 match->header = &devlink_dpipe_header_ipv4; in mlxsw_sp_dpipe_table_host_match_action_prepare()
384 match->field_id = DEVLINK_DPIPE_FIELD_IPV4_DST_IP; in mlxsw_sp_dpipe_table_host_match_action_prepare()
387 match->header = &devlink_dpipe_header_ipv6; in mlxsw_sp_dpipe_table_host_match_action_prepare()
388 match->field_id = DEVLINK_DPIPE_FIELD_IPV6_DST_IP; in mlxsw_sp_dpipe_table_host_match_action_prepare()
409 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_host_entry_prepare() local
417 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_RIF]; in mlxsw_sp_dpipe_table_host_entry_prepare()
420 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
426 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_DIP]; in mlxsw_sp_dpipe_table_host_entry_prepare()
429 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
862 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_adj_matches_dump() local
865 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_matches_dump()
866 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_matches_dump()
867 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_INDEX; in mlxsw_sp_dpipe_table_adj_matches_dump()
869 err = devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_adj_matches_dump()
873 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_matches_dump()
874 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_matches_dump()
875 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_SIZE; in mlxsw_sp_dpipe_table_adj_matches_dump()
877 err = devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_adj_matches_dump()
881 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_matches_dump()
882 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_matches_dump()
883 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_HASH_INDEX; in mlxsw_sp_dpipe_table_adj_matches_dump()
885 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_adj_matches_dump()
939 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_adj_match_action_prepare() local
941 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
942 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
943 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
944 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_INDEX; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
946 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
947 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
948 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
949 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_SIZE; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
951 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
952 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
953 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
954 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_HASH_INDEX; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
976 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_adj_entry_prepare() local
984 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
987 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
993 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
996 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1002 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1005 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()