Lines Matching refs:rule
901 struct mlx4_net_trans_rule *rule) in mlx4_err_rule() argument
911 rule->port, rule->priority, rule->qpn); in mlx4_err_rule()
913 list_for_each_entry(cur, &rule->list, list) { in mlx4_err_rule()
978 struct mlx4_net_trans_rule *rule, u64 *reg_id) in mlx4_flow_attach() argument
989 if (!mlx4_qp_lookup(dev, rule->qpn)) { in mlx4_flow_attach()
990 mlx4_err_rule(dev, "QP doesn't exist\n", rule); in mlx4_flow_attach()
995 trans_rule_ctrl_to_hw(rule, mailbox->buf); in mlx4_flow_attach()
999 list_for_each_entry(cur, &rule->list, list) { in mlx4_flow_attach()
1011 rule); in mlx4_flow_attach()
1018 rule); in mlx4_flow_attach()
1023 rule); in mlx4_flow_attach()
1026 mlx4_err_rule(dev, "Fail to register network rule.\n", rule); in mlx4_flow_attach()
1057 struct mlx4_net_trans_rule rule = { in mlx4_tunnel_steer_add() local
1066 rule.port = port; in mlx4_tunnel_steer_add()
1067 rule.qpn = qpn; in mlx4_tunnel_steer_add()
1068 rule.priority = prio; in mlx4_tunnel_steer_add()
1069 INIT_LIST_HEAD(&rule.list); in mlx4_tunnel_steer_add()
1078 list_add_tail(&spec_eth_outer.list, &rule.list); in mlx4_tunnel_steer_add()
1079 list_add_tail(&spec_vxlan.list, &rule.list); in mlx4_tunnel_steer_add()
1080 list_add_tail(&spec_eth_inner.list, &rule.list); in mlx4_tunnel_steer_add()
1082 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_tunnel_steer_add()
1375 struct mlx4_net_trans_rule rule = { in mlx4_trans_to_dmfs_attach() local
1382 rule.allow_loopback = !block_mcast_loopback; in mlx4_trans_to_dmfs_attach()
1383 rule.port = port; in mlx4_trans_to_dmfs_attach()
1384 rule.qpn = qp->qpn; in mlx4_trans_to_dmfs_attach()
1385 INIT_LIST_HEAD(&rule.list); in mlx4_trans_to_dmfs_attach()
1402 list_add_tail(&spec.list, &rule.list); in mlx4_trans_to_dmfs_attach()
1404 return mlx4_flow_attach(dev, &rule, reg_id); in mlx4_trans_to_dmfs_attach()
1467 struct mlx4_net_trans_rule rule = { in mlx4_flow_steer_promisc_add() local
1489 rule.promisc_mode = mode; in mlx4_flow_steer_promisc_add()
1490 rule.port = port; in mlx4_flow_steer_promisc_add()
1491 rule.qpn = qpn; in mlx4_flow_steer_promisc_add()
1492 INIT_LIST_HEAD(&rule.list); in mlx4_flow_steer_promisc_add()
1495 return mlx4_flow_attach(dev, &rule, regid_p); in mlx4_flow_steer_promisc_add()