Lines Matching refs:rule
1500 struct mlx4_net_trans_rule rule = { in mlx4_en_flow_replace() local
1507 rule.port = priv->port; in mlx4_en_flow_replace()
1508 rule.priority = MLX4_DOMAIN_ETHTOOL | cmd->fs.location; in mlx4_en_flow_replace()
1509 INIT_LIST_HEAD(&rule.list); in mlx4_en_flow_replace()
1529 rule.qpn = qpn; in mlx4_en_flow_replace()
1530 err = mlx4_en_ethtool_to_net_trans_rule(dev, cmd, &rule.list); in mlx4_en_flow_replace()
1547 err = mlx4_flow_attach(priv->mdev->dev, &rule, ®_id); in mlx4_en_flow_replace()
1559 list_for_each_entry_safe(spec, tmp_spec, &rule.list, list) { in mlx4_en_flow_replace()
1570 struct ethtool_flow_id *rule; in mlx4_en_flow_detach() local
1576 rule = &priv->ethtool_rules[cmd->fs.location]; in mlx4_en_flow_detach()
1577 if (!rule->id) { in mlx4_en_flow_detach()
1582 err = mlx4_flow_detach(priv->mdev->dev, rule->id); in mlx4_en_flow_detach()
1585 cmd->fs.location, rule->id); in mlx4_en_flow_detach()
1588 rule->id = 0; in mlx4_en_flow_detach()
1589 memset(&rule->flow_spec, 0, sizeof(struct ethtool_rx_flow_spec)); in mlx4_en_flow_detach()
1590 list_del(&rule->list); in mlx4_en_flow_detach()
1600 struct ethtool_flow_id *rule; in mlx4_en_get_flow() local
1606 rule = &priv->ethtool_rules[loc]; in mlx4_en_get_flow()
1607 if (rule->id) in mlx4_en_get_flow()
1608 memcpy(&cmd->fs, &rule->flow_spec, in mlx4_en_get_flow()