Lines Matching refs:rule
1485 struct mlx4_net_trans_rule rule = { in mlx4_en_flow_replace() local
1492 rule.port = priv->port; in mlx4_en_flow_replace()
1493 rule.priority = MLX4_DOMAIN_ETHTOOL | cmd->fs.location; in mlx4_en_flow_replace()
1494 INIT_LIST_HEAD(&rule.list); in mlx4_en_flow_replace()
1514 rule.qpn = qpn; in mlx4_en_flow_replace()
1515 err = mlx4_en_ethtool_to_net_trans_rule(dev, cmd, &rule.list); in mlx4_en_flow_replace()
1532 err = mlx4_flow_attach(priv->mdev->dev, &rule, ®_id); in mlx4_en_flow_replace()
1544 list_for_each_entry_safe(spec, tmp_spec, &rule.list, list) { in mlx4_en_flow_replace()
1555 struct ethtool_flow_id *rule; in mlx4_en_flow_detach() local
1561 rule = &priv->ethtool_rules[cmd->fs.location]; in mlx4_en_flow_detach()
1562 if (!rule->id) { in mlx4_en_flow_detach()
1567 err = mlx4_flow_detach(priv->mdev->dev, rule->id); in mlx4_en_flow_detach()
1570 cmd->fs.location, rule->id); in mlx4_en_flow_detach()
1573 rule->id = 0; in mlx4_en_flow_detach()
1574 memset(&rule->flow_spec, 0, sizeof(struct ethtool_rx_flow_spec)); in mlx4_en_flow_detach()
1575 list_del(&rule->list); in mlx4_en_flow_detach()
1585 struct ethtool_flow_id *rule; in mlx4_en_get_flow() local
1591 rule = &priv->ethtool_rules[loc]; in mlx4_en_get_flow()
1592 if (rule->id) in mlx4_en_get_flow()
1593 memcpy(&cmd->fs, &rule->flow_spec, in mlx4_en_get_flow()