Lines Matching refs:match
101 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_matches_dump() local
103 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_erif_matches_dump()
104 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_matches_dump()
105 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_erif_matches_dump()
107 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_erif_matches_dump()
111 mlxsw_sp_erif_match_action_prepare(struct devlink_dpipe_match *match, in mlxsw_sp_erif_match_action_prepare() argument
118 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_erif_match_action_prepare()
119 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_erif_match_action_prepare()
120 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_erif_match_action_prepare()
125 struct devlink_dpipe_match *match, in mlxsw_sp_erif_entry_prepare() argument
135 match_value->match = match; in mlxsw_sp_erif_entry_prepare()
196 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_entries_dump() local
206 mlxsw_sp_erif_match_action_prepare(&match, &action); in mlxsw_sp_dpipe_table_erif_entries_dump()
207 err = mlxsw_sp_erif_entry_prepare(&entry, &match_value, &match, in mlxsw_sp_dpipe_table_erif_entries_dump()
311 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_host_matches_dump() local
314 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_matches_dump()
315 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_host_matches_dump()
316 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_host_matches_dump()
318 err = devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_host_matches_dump()
324 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_matches_dump()
325 match.header = &devlink_dpipe_header_ipv4; in mlxsw_sp_dpipe_table_host_matches_dump()
326 match.field_id = DEVLINK_DPIPE_FIELD_IPV4_DST_IP; in mlxsw_sp_dpipe_table_host_matches_dump()
329 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_matches_dump()
330 match.header = &devlink_dpipe_header_ipv6; in mlxsw_sp_dpipe_table_host_matches_dump()
331 match.field_id = DEVLINK_DPIPE_FIELD_IPV6_DST_IP; in mlxsw_sp_dpipe_table_host_matches_dump()
338 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_host_matches_dump()
370 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_host_match_action_prepare() local
372 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_RIF]; in mlxsw_sp_dpipe_table_host_match_action_prepare()
373 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_match_action_prepare()
374 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_host_match_action_prepare()
375 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_host_match_action_prepare()
377 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_DIP]; in mlxsw_sp_dpipe_table_host_match_action_prepare()
378 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_host_match_action_prepare()
381 match->header = &devlink_dpipe_header_ipv4; in mlxsw_sp_dpipe_table_host_match_action_prepare()
382 match->field_id = DEVLINK_DPIPE_FIELD_IPV4_DST_IP; in mlxsw_sp_dpipe_table_host_match_action_prepare()
385 match->header = &devlink_dpipe_header_ipv6; in mlxsw_sp_dpipe_table_host_match_action_prepare()
386 match->field_id = DEVLINK_DPIPE_FIELD_IPV6_DST_IP; in mlxsw_sp_dpipe_table_host_match_action_prepare()
407 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_host_entry_prepare() local
415 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_RIF]; in mlxsw_sp_dpipe_table_host_entry_prepare()
418 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
424 match = &matches[MLXSW_SP_DPIPE_TABLE_HOST_MATCH_DIP]; in mlxsw_sp_dpipe_table_host_entry_prepare()
427 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare()
860 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_adj_matches_dump() local
863 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_matches_dump()
864 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_matches_dump()
865 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_INDEX; in mlxsw_sp_dpipe_table_adj_matches_dump()
867 err = devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_adj_matches_dump()
871 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_matches_dump()
872 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_matches_dump()
873 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_SIZE; in mlxsw_sp_dpipe_table_adj_matches_dump()
875 err = devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_adj_matches_dump()
879 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_matches_dump()
880 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_matches_dump()
881 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_HASH_INDEX; in mlxsw_sp_dpipe_table_adj_matches_dump()
883 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_adj_matches_dump()
937 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_adj_match_action_prepare() local
939 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
940 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
941 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
942 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_INDEX; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
944 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
945 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
946 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
947 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_SIZE; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
949 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX]; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
950 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
951 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
952 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ADJ_HASH_INDEX; in mlxsw_sp_dpipe_table_adj_match_action_prepare()
974 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_adj_entry_prepare() local
982 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
985 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
991 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
994 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1000 match = &matches[MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX]; in mlxsw_sp_dpipe_table_adj_entry_prepare()
1003 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare()