Searched refs:loc_rule (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1597 struct ethtool_flow_id *loc_rule; in mlx4_en_flow_replace() local 1636 loc_rule = &priv->ethtool_rules[cmd->fs.location]; in mlx4_en_flow_replace() 1637 if (loc_rule->id) { in mlx4_en_flow_replace() 1638 err = mlx4_flow_detach(priv->mdev->dev, loc_rule->id); in mlx4_en_flow_replace() 1641 cmd->fs.location, loc_rule->id); in mlx4_en_flow_replace() 1644 loc_rule->id = 0; in mlx4_en_flow_replace() 1645 memset(&loc_rule->flow_spec, 0, in mlx4_en_flow_replace() 1647 list_del(&loc_rule->list); in mlx4_en_flow_replace() 1655 loc_rule->id = reg_id; in mlx4_en_flow_replace() 1656 memcpy(&loc_rule->flow_spec, &cmd->fs, in mlx4_en_flow_replace() [all …]
|
/linux-6.12.1/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 1432 struct bcmgenet_rxnfc_rule *loc_rule; in bcmgenet_insert_flow() local 1452 list_for_each_entry(loc_rule, &priv->rxnfc_list, list) { in bcmgenet_insert_flow() 1453 cmd->fs.location = loc_rule->fs.location; in bcmgenet_insert_flow() 1454 err = memcmp(&loc_rule->fs, &cmd->fs, in bcmgenet_insert_flow() 1461 loc_rule = &priv->rxnfc_rules[i]; in bcmgenet_insert_flow() 1462 if (loc_rule->state == BCMGENET_RXNFC_STATE_UNUSED) { in bcmgenet_insert_flow() 1472 loc_rule = &priv->rxnfc_rules[cmd->fs.location]; in bcmgenet_insert_flow() 1474 if (loc_rule->state == BCMGENET_RXNFC_STATE_ENABLED) in bcmgenet_insert_flow() 1476 if (loc_rule->state != BCMGENET_RXNFC_STATE_UNUSED) { in bcmgenet_insert_flow() 1477 list_del(&loc_rule->list); in bcmgenet_insert_flow() [all …]
|