Lines Matching refs:dest

158 	struct mlx5_flow_destination dest = {};  in ipsec_rx_status_drop_create()  local
193 dest.type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in ipsec_rx_status_drop_create()
194 dest.counter_id = mlx5_fc_id(flow_counter); in ipsec_rx_status_drop_create()
197 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in ipsec_rx_status_drop_create()
225 struct mlx5_flow_destination *dest) in ipsec_rx_status_pass_create() argument
246 rule = mlx5_add_flow_rules(rx->ft.status, spec, &flow_act, dest, 2); in ipsec_rx_status_pass_create()
272 struct mlx5_flow_destination *dest) in mlx5_ipsec_rx_status_create() argument
280 err = ipsec_rx_status_pass_create(ipsec, rx, dest); in mlx5_ipsec_rx_status_create()
294 struct mlx5_flow_destination *dest) in ipsec_miss_create() argument
321 miss->rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1); in ipsec_miss_create()
393 struct mlx5_flow_destination *dest) in ipsec_rx_status_pass_dest_get() argument
399 return mlx5_esw_ipsec_rx_status_pass_dest_get(ipsec, dest); in ipsec_rx_status_pass_dest_get()
401 *dest = mlx5_ttc_get_default_dest(attr->ttc, family2tt(attr->family)); in ipsec_rx_status_pass_dest_get()
402 err = mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, attr->ns, dest, in ipsec_rx_status_pass_dest_get()
410 dest->type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in ipsec_rx_status_pass_dest_get()
411 dest->ft = ft; in ipsec_rx_status_pass_dest_get()
421 struct mlx5_flow_destination dest = {}; in ipsec_rx_ft_connect() local
423 dest.type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in ipsec_rx_ft_connect()
424 dest.ft = rx->ft.pol; in ipsec_rx_ft_connect()
425 mlx5_ttc_fwd_dest(attr->ttc, family2tt(attr->family), &dest); in ipsec_rx_ft_connect()
432 struct mlx5_flow_destination dest[2]; in rx_create() local
439 err = ipsec_rx_status_pass_dest_get(ipsec, rx, &attr, &dest[0]); in rx_create()
450 dest[1].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in rx_create()
451 dest[1].counter_id = mlx5_fc_id(rx->fc->cnt); in rx_create()
452 err = mlx5_ipsec_rx_status_create(ipsec, rx, dest); in rx_create()
468 err = ipsec_miss_create(mdev, rx->ft.sa, &rx->sa, dest); in rx_create()
492 memset(dest, 0x00, 2 * sizeof(*dest)); in rx_create()
493 dest[0].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in rx_create()
494 dest[0].ft = rx->ft.sa; in rx_create()
495 err = ipsec_miss_create(mdev, rx->ft.pol, &rx->pol, dest); in rx_create()
624 struct mlx5_flow_destination dest = {}; in ipsec_counter_rule_tx() local
637 dest.type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in ipsec_counter_rule_tx()
638 dest.counter_id = mlx5_fc_id(tx->fc->cnt); in ipsec_counter_rule_tx()
639 fte = mlx5_add_flow_rules(tx->ft.status, spec, &flow_act, &dest, 1); in ipsec_counter_rule_tx()
700 struct mlx5_flow_destination dest = {}; in tx_create() local
727 dest.type = MLX5_FLOW_DESTINATION_TYPE_VPORT; in tx_create()
728 dest.vport.num = MLX5_VPORT_UPLINK; in tx_create()
729 err = ipsec_miss_create(mdev, tx->ft.sa, &tx->sa, &dest); in tx_create()
732 memset(&dest, 0, sizeof(dest)); in tx_create()
753 dest.type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in tx_create()
754 dest.ft = tx->ft.sa; in tx_create()
755 err = ipsec_miss_create(mdev, tx->ft.pol, &tx->pol, &dest); in tx_create()
1267 udphdr->dest = attrs->dport; in setup_pkt_transport_reformat()
1327 struct mlx5_flow_destination dest[2]; in rx_add_rule() local
1390 dest[0].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in rx_add_rule()
1391 dest[0].ft = rx->ft.status; in rx_add_rule()
1392 dest[1].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in rx_add_rule()
1393 dest[1].counter_id = mlx5_fc_id(counter); in rx_add_rule()
1394 rule = mlx5_add_flow_rules(rx->ft.sa, spec, &flow_act, dest, 2); in rx_add_rule()
1427 struct mlx5_flow_destination dest[2]; in tx_add_rule() local
1486 dest[0].ft = tx->ft.status; in tx_add_rule()
1487 dest[0].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in tx_add_rule()
1488 dest[1].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in tx_add_rule()
1489 dest[1].counter_id = mlx5_fc_id(counter); in tx_add_rule()
1490 rule = mlx5_add_flow_rules(tx->ft.sa, spec, &flow_act, dest, 2); in tx_add_rule()
1520 struct mlx5_flow_destination dest[2] = {}; in tx_add_policy() local
1561 dest[dstn].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in tx_add_policy()
1562 dest[dstn].counter_id = mlx5_fc_id(tx->fc->drop); in tx_add_policy()
1574 dest[dstn].ft = tx->ft.sa; in tx_add_policy()
1575 dest[dstn].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in tx_add_policy()
1577 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, dstn); in tx_add_policy()
1604 struct mlx5_flow_destination dest[2]; in rx_add_policy() local
1639 dest[dstn].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in rx_add_policy()
1640 dest[dstn].counter_id = mlx5_fc_id(rx->fc->drop); in rx_add_policy()
1652 dest[dstn].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in rx_add_policy()
1653 dest[dstn].ft = rx->ft.sa; in rx_add_policy()
1655 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, dstn); in rx_add_policy()