Home
last modified time | relevance | path

Searched refs:loc_rule (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1605 struct ethtool_flow_id *loc_rule; in mlx4_en_flow_replace() local
1644 loc_rule = &priv->ethtool_rules[cmd->fs.location]; in mlx4_en_flow_replace()
1645 if (loc_rule->id) { in mlx4_en_flow_replace()
1646 err = mlx4_flow_detach(priv->mdev->dev, loc_rule->id); in mlx4_en_flow_replace()
1649 cmd->fs.location, loc_rule->id); in mlx4_en_flow_replace()
1652 loc_rule->id = 0; in mlx4_en_flow_replace()
1653 memset(&loc_rule->flow_spec, 0, in mlx4_en_flow_replace()
1655 list_del(&loc_rule->list); in mlx4_en_flow_replace()
1663 loc_rule->id = reg_id; in mlx4_en_flow_replace()
1664 memcpy(&loc_rule in mlx4_en_flow_replace()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1616 struct ethtool_flow_id *loc_rule; in mlx4_en_flow_replace() local
1655 loc_rule = &priv->ethtool_rules[cmd->fs.location]; in mlx4_en_flow_replace()
1656 if (loc_rule->id) { in mlx4_en_flow_replace()
1657 err = mlx4_flow_detach(priv->mdev->dev, loc_rule->id); in mlx4_en_flow_replace()
1660 cmd->fs.location, loc_rule->id); in mlx4_en_flow_replace()
1663 loc_rule->id = 0; in mlx4_en_flow_replace()
1664 memset(&loc_rule->flow_spec, 0, in mlx4_en_flow_replace()
1666 list_del(&loc_rule->list); in mlx4_en_flow_replace()
1674 loc_rule->id = reg_id; in mlx4_en_flow_replace()
1675 memcpy(&loc_rule in mlx4_en_flow_replace()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c1434 struct bcmgenet_rxnfc_rule *loc_rule; in bcmgenet_insert_flow() local
1454 list_for_each_entry(loc_rule, &priv->rxnfc_list, list) { in bcmgenet_insert_flow()
1455 cmd->fs.location = loc_rule->fs.location; in bcmgenet_insert_flow()
1456 err = memcmp(&loc_rule->fs, &cmd->fs, in bcmgenet_insert_flow()
1463 loc_rule = &priv->rxnfc_rules[i]; in bcmgenet_insert_flow()
1464 if (loc_rule->state == BCMGENET_RXNFC_STATE_UNUSED) { in bcmgenet_insert_flow()
1474 loc_rule = &priv->rxnfc_rules[cmd->fs.location]; in bcmgenet_insert_flow()
1476 if (loc_rule->state == BCMGENET_RXNFC_STATE_ENABLED) in bcmgenet_insert_flow()
1478 if (loc_rule->state != BCMGENET_RXNFC_STATE_UNUSED) { in bcmgenet_insert_flow()
1479 list_del(&loc_rule in bcmgenet_insert_flow()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c1405 struct bcmgenet_rxnfc_rule *loc_rule; in bcmgenet_insert_flow() local
1424 loc_rule = &priv->rxnfc_rules[cmd->fs.location]; in bcmgenet_insert_flow()
1425 if (loc_rule->state == BCMGENET_RXNFC_STATE_ENABLED) in bcmgenet_insert_flow()
1427 if (loc_rule->state != BCMGENET_RXNFC_STATE_UNUSED) { in bcmgenet_insert_flow()
1428 list_del(&loc_rule->list); in bcmgenet_insert_flow()
1431 loc_rule->state = BCMGENET_RXNFC_STATE_UNUSED; in bcmgenet_insert_flow()
1432 memcpy(&loc_rule->fs, &cmd->fs, in bcmgenet_insert_flow()
1435 bcmgenet_hfb_create_rxnfc_filter(priv, loc_rule); in bcmgenet_insert_flow()
1437 list_add_tail(&loc_rule->list, &priv->rxnfc_list); in bcmgenet_insert_flow()

Completed in 14 milliseconds