Lines Matching refs:rule

900 			  struct mlx4_net_trans_rule *rule)  in mlx4_err_rule()  argument
910 rule->port, rule->priority, rule->qpn); in mlx4_err_rule()
912 list_for_each_entry(cur, &rule->list, list) { in mlx4_err_rule()
977 struct mlx4_net_trans_rule *rule, u64 *reg_id) in mlx4_flow_attach() argument
988 trans_rule_ctrl_to_hw(rule, mailbox->buf); in mlx4_flow_attach()
992 list_for_each_entry(cur, &rule->list, list) { in mlx4_flow_attach()
1005 rule); in mlx4_flow_attach()
1012 rule); in mlx4_flow_attach()
1017 rule); in mlx4_flow_attach()
1020 mlx4_err_rule(dev, "Fail to register network rule.\n", rule); in mlx4_flow_attach()
1050 struct mlx4_net_trans_rule rule = { in mlx4_tunnel_steer_add() local
1059 rule.port = port; in mlx4_tunnel_steer_add()
1060 rule.qpn = qpn; in mlx4_tunnel_steer_add()
1061 rule.priority = prio; in mlx4_tunnel_steer_add()
1062 INIT_LIST_HEAD(&rule.list); in mlx4_tunnel_steer_add()
1071 list_add_tail(&spec_eth_outer.list, &rule.list); in mlx4_tunnel_steer_add()
1072 list_add_tail(&spec_vxlan.list, &rule.list); in mlx4_tunnel_steer_add()
1073 list_add_tail(&spec_eth_inner.list, &rule.list); in mlx4_tunnel_steer_add()
1075 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_tunnel_steer_add()
1368 struct mlx4_net_trans_rule rule = { in mlx4_trans_to_dmfs_attach() local
1375 rule.allow_loopback = !block_mcast_loopback; in mlx4_trans_to_dmfs_attach()
1376 rule.port = port; in mlx4_trans_to_dmfs_attach()
1377 rule.qpn = qp->qpn; in mlx4_trans_to_dmfs_attach()
1378 INIT_LIST_HEAD(&rule.list); in mlx4_trans_to_dmfs_attach()
1395 list_add_tail(&spec.list, &rule.list); in mlx4_trans_to_dmfs_attach()
1397 return mlx4_flow_attach(dev, &rule, reg_id); in mlx4_trans_to_dmfs_attach()
1460 struct mlx4_net_trans_rule rule; in mlx4_flow_steer_promisc_add() local
1477 rule.promisc_mode = mode; in mlx4_flow_steer_promisc_add()
1478 rule.port = port; in mlx4_flow_steer_promisc_add()
1479 rule.qpn = qpn; in mlx4_flow_steer_promisc_add()
1480 INIT_LIST_HEAD(&rule.list); in mlx4_flow_steer_promisc_add()
1483 return mlx4_flow_attach(dev, &rule, regid_p); in mlx4_flow_steer_promisc_add()